Fix the search

Fix the search issue where the split function wasn't working properly.