Check If String Only Contains Whitespace Javascript Substring