code: function _trim(sValue, aParams) {
  		var i = 0,
  			aTrims = aParams;
  
  		if (!aTrims) {
  			aTrims = [" "];
  		}
  
  		while (i < aTrims.length) {
  			if (_endsWith(sValue, aTrims[i])) {
  				sValue = sValue.substring(0, sValue.length - aTrims[i].length);
  				i = 0;
  				continue;
  			}
  			i++;
  		}
  
  		i = 0;
  		while (i < aTrims.length) {
  			if (_startsWith(sValue, aTrims[i])) {
  				sValue = sValue.substring(aTrims[i].length);
  				i = 0;
  				continue;
  			}
  			i++;
  		}
  
  		return sValue;
  	}
docs: Trims all occurrences of the given string values from both ends of the specified string.
  @param {string} sValue The value to be trimmed
  @param {string[]} aParams All values to be removed
  @returns {string} The trimmed value
  @private