trim spaces around string javascript code example Example: javascript whitespace strip yourvariable.trim()