docs: function strip(path) {
      var cur;
      var next;
      var str = '';
  
      for (var i = 0; i < path.length; i++) {
          cur = path.charAt(i);
  
          if (i !== path.length - 1) {
              next = path.charAt(i + 1);
          }
  
          if (cur === '/' && (next === '/' || (next === '?' && i > 0))) {
              continue;
          }
  
          str += cur;
      }
  
      return (str);
  }