Fix whitespace bug in search terms