Handle space in search query