handle searches with spaces and gracefully handle search errors