function trim(stringToTrim) { return stringToTrim.replace(/^\s+|\s+$/g,""); }