Fixing problem with spaces being introduced to lucene queries