Sometimes, autocomplete suggestions have a space at the end. This causes 2 issues:
- If the result is selected, the space is added to the input, which could be unexpected for the user
- Creates the illusion of duplicate results, e.g. "dog" and "dog "
I'm guessing we just need a little Regex tweak to resolve this.