javascript string no space in the beginning 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();