fixed a bug that prevent the user from having a space in the search.