SyntaxFix
Write A Post
Hire A Developer
Questions
This will help to find the spaces in the beginning, middle and ending:
var regexp = /\s/g