Fixed: Unable to trim spaces on search. Also fixed problem when no
results are found