Strip out invalid characters from search + add tests for this

Fix for issue 217
https://github.com/professor/whiteboard/issues/217
Keeping search logic consistent with Hibiscus
Merge pull request #227 from kaushikgopal/search_string_strip

Strip out invalid characters from search + add tests for this