code: function Router_trim(str, strip) {
          if (!Type.isString(str)) {
              return str;
          }
          str = str.trim();
          if (strip) {
              str = str.replace(core.createRegex('^' + strip), '');
              str = str.replace(core.createRegex(strip + '$'), '');
          }
          return str;
      }
docs: @since 0.0.1
  @author Igor Ivanovic
  @method Router#trim
  
  @description
  Strip whitespace in string and as well strip extra parameter