QuickSearch: remove spaces around value

Remove spaces in beginning or end of POSTed value.
We don't need them in "%like%" type of comparison.