Fixed trimming of search string
Added test for quotes in search string
Fixed bug where parameters in links were not being sanitized