Send valid query when string contains double space

For example searching for "hello  world" results in a query similar
to "name:hello AND name: AND name:world" which elasticsearch chokes on.