Ops, my bad. Fixed. Now it also strips preceding and trailing white space from the query \o/