util: remove unnecessary trim/trimLeft/trimRight wrappers

When needed, use boost::algorithm::trim/trim_left/trim_right directly.

Change-Id: I854d89e553c70ab20679a38922cec306fc57824d
Refs: #3006
diff --git a/src/name.cpp b/src/name.cpp
index f8b9a8c..ad15d08 100644
--- a/src/name.cpp
+++ b/src/name.cpp
@@ -1,6 +1,6 @@
 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
 /**
- * Copyright (c) 2013-2016 Regents of the University of California.
+ * Copyright (c) 2013-2017 Regents of the University of California.
  *
  * This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
  *
@@ -26,10 +26,10 @@
 #include "name.hpp"
 
 #include "util/time.hpp"
-#include "util/string-helper.hpp"
 #include "encoding/block.hpp"
 #include "encoding/encoding-buffer.hpp"
 
+#include <boost/algorithm/string/trim.hpp>
 #include <boost/functional/hash.hpp>
 
 namespace ndn {
@@ -61,7 +61,7 @@
 
 Name::Name(std::string uri)
 {
-  trim(uri);
+  boost::algorithm::trim(uri);
   if (uri.empty())
     return;
 
@@ -72,7 +72,7 @@
     if (iFirstSlash == std::string::npos || iColon < iFirstSlash) {
       // Omit the leading protocol such as ndn:
       uri.erase(0, iColon + 1);
-      trim(uri);
+      boost::algorithm::trim(uri);
     }
   }
 
@@ -86,12 +86,12 @@
         return;
       else {
         uri.erase(0, iAfterAuthority + 1);
-        trim(uri);
+        boost::algorithm::trim(uri);
       }
     }
     else {
       uri.erase(0, 1);
-      trim(uri);
+      boost::algorithm::trim(uri);
     }
   }