code: function stripX(str, unwanted) {
          if (["string"].indexOf(type(str)) < 0)
              throw `stripX(): Invalid str argument type; expected 'string'; found ${type(str)}`;
  
          if (["undefined", "null", "array", "string"].indexOf(type(unwanted)) < 0)
              throw `stripX(): Invalid unwanted argument type; expected 'string','array','null,'undefined'; found ${type(unwanted)}`;
  
          switch (type(unwanted)) {
              case "undefined":
              case "null":
                  return str.stripWhitespace();
  
              case "array":
                  return unwanted
                      .reduce(function (_cumulative, _current, _index, _arr) {
                          var pos = _cumulative.indexOf(_current);
                          return (pos >= 0)
                              ? _cumulative.substring(0, pos) +
                              _cumulative.substring(pos + s.length, _cumulative.length).stripX(_current)
                              : _cumulative;
                      }, str);
  
              case "string":
                  var pos = str.indexOf(unwanted);
                  return (pos >= 0)
                      ? str.substring(0, pos) + str.substring(pos + unwanted.length, str.length).stripX(unwanted)
                      : str;
  
              default:
                  throw `stripX(): Invalid unwanted argument type; expected 'string','array','null,'undefined'; found ${type(unwanted)}`;
          }
      }
docs: strips unwanted string(s), or whitespace by default, from a target string