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