CRM-15653 - Fix contact search when input contains spaces