free text search and reduce duplicates for countries list