Fix query when searching for more than one word