function trimLeftRight(str){
try {
var newStr = "";
newStr = str.replace(/(^\s*)/g, "").replace(/(\s*$)/g, "");
return newStr;
} catch (e) {
return str;
}
}
try {
var newStr = "";
newStr = str.replace(/(^\s*)/g, "").replace(/(\s*$)/g, "");
return newStr;
} catch (e) {
return str;
}
}