Fixed leading/trailing/in between spaces

Results can now be found if there are leading/trailing whitespaces or
whitespaces between keywords.