Trim the search string before using it to find matching titles
Firefox OS autocompletion adds a space after each word it autocompletes,
so the title search was failing when using that feature (or simply if
you type a space at the end of your search string)