code: function trimStringEnds(keyValueString, unwantedCharArray) {
      var unwantedBegCharIndex = 0;
      var unwantedEndCharIndex = keyValueString.length - 1;
      var charIsUnwanted;
      var keepGoing = true; //keep traversing the string
      //starting from the beginning of the string
      while (keepGoing) {
          charIsUnwanted = false;
          for (var x = 0; x < unwantedCharArray.length; x++) {
              if (keyValueString.charAt(unwantedBegCharIndex) === unwantedCharArray[x]) {
                  charIsUnwanted = true;
              }
          }
          if (!charIsUnwanted) {
              keepGoing = false;
          } else {
              unwantedBegCharIndex++;
          }
      }
      //now start at the end
      keepGoing = true;
      while (keepGoing) {
          charIsUnwanted = false;
          for (var y = 0; y < unwantedCharArray.length; y++) {
              if (keyValueString.charAt(unwantedEndCharIndex) === unwantedCharArray[y]) {
                  charIsUnwanted = true;
              }
          }
          if (!charIsUnwanted) {
              keepGoing = false;
          } else {
              unwantedEndCharIndex--;
          }
      }
      keyValueString = keyValueString.slice(unwantedBegCharIndex, unwantedEndCharIndex + 1);
      return keyValueString;
  }
docs: /*cleans up keys and values from the beginning and end of the string