QuickSearch: remove spaces around value

Remove spaces in beginning or end of POSTed value.
We don't need them in "%like%" type of comparison.
Merge pull request #471 from DarkSide666/patch-6

QuickSearch: remove spaces around value