javascript remove space from beginning and end of string code example
Example: suppress spaces in front and in the end of a string javascript
var hello = ' Hello there! ';
// returns "Hello there!"
hello.trim();
var hello = ' Hello there! ';
// returns "Hello there!"
hello.trim();