Trim guideid segment result of whitespace
Search: Fix same query search bug

Everytime you searched for the same query, it would append the same result set
every time you searched.  This should only happen when the search query is
different.