javascript replace trim whitespace code example Example: javascript whitespace strip yourvariable.trim()