Strip spaces, add exception type
Error handling for search results