rem: function trim(value) { var temp = value; var obj = /^(\s*)([\W\w]*)(\b\s*$)/;  if (obj.test(temp)) temp = temp.replace(obj, '$2');  var obj = / +/g; temp = temp.replace(obj, " "); if (temp == " ") temp = "";  return temp; 
add: String.prototype.trim = function(){ var r=/^\s+|\s+$/; return this.replace(r,''); 
context: function trim(value){   var temp = value;   var obj = /^(\s*)([\W\w]*)(\b\s*$)/;   if (obj.test(temp))    temp = temp.replace(obj, '$2');   var obj = / +/g;   temp = temp.replace(obj, " ");   if (temp == " ")    temp = "";   return temp;}
meta: 8196	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8196/fab38e94b49e2eeeabde4d7a7599a28166f8f2f2/string.js/clean/php4/branches/2.3-utf8/shared/js/string.js