countryToCode function

Convert country names to country codes