function trim(value) {
  var temp = value;
	var obj = /^(\s*)([\W\w]*)(\b\s*$)/;
  if (obj.test(temp)) {
    temp = temp.replace(obj, '$2');
  }
  return temp;
}
