Cleanup: add convert_to_lower() and matches_search().