implemented brute force text search