Strip search query of leading & trailing whitespace