regular expression trim in javascript code example Example: javascript whitespace strip yourvariable.trim()