docs: function(str) {
        var quoteStack = [];
        var output = "";
  
        for(var i=0; i<str.length; i++) {
          var c = str.charAt(i);
  
          // Quote?
          if((c == '"' || c== "'") && (i==0 || str.charAt(i-1) != '\\')) {
            // Found non-escaped quote, either deepen stack or pop stack
            if(quoteStack[quoteStack.length-1] == c) quoteStack.pop();
            else quoteStack.push(c);
            // Also push character
            output += c;
          }
          else if(c == " ") {
            // Found space, append to output only if quote stack populated
            if(quoteStack.length > 0) output += c;
          }
          else {
            // Found other char, append
            output += c;
          }
        }
  
       return output; // Strip spaces from query
     }