function trim(str) {
		return (str === null || str === undefined) ? '' : ("" + str).replace(whiteSpaceRegExp, '');
	}
Removes whitespace from the beginning and end of a string.

@method trim
@param {String} s String to remove whitespace from.
@return {String} New string with removed whitespace.