JavaScript Trim Method
There are number of ways you can trim strings using javascript. The best way is to prototype
the string object, adding a trim method, so you can perform the action by merely calling
“string.trim()”.
[Read More]