Javascript Check If String Contains Spaces