Fix bug where searching with space gave no result