Check If String Only Contains Whitespace Javascript