Bug with spaces at the start and the end of the search query was fixed