function trim(str) {
		if (!str) {
			return str;
		}
		return String.prototype.trim ? String.prototype.trim.call(str) : str.toString().replace(/^\s*/, '').replace(/\s*$/, '');
	}
Trims white spaces around the string
	
	@method trim
	@static
	@param {String} str
	@return {String}