Add js method to check whitespaces in a search request. Doesnt break now.