switch country_code hash map to ext/string method