public HashMap<Integer, String> GetCountryIdByNames(String s){
        List<String> inputCountryList = new ArrayList<>();
        if (s.indexOf(',')!=-1) {
            while (s.indexOf(',') != -1) {
                int i = s.indexOf(',');
                inputCountryList.add(s.substring(0, i));
                s = s.substring(i + 1);
            }
            inputCountryList.add(s);
        }else {
            inputCountryList.add(s);
        }

        HashMap<Integer,String> formattedCountryIdName = new HashMap<>();

        for(Integer id:CountryIdName.keySet()){
            for (int x=0; x< inputCountryList.size();x++){
                if (CountryIdName.get(id).equals(inputCountryList.get(x))){
                    formattedCountryIdName.put(id, CountryIdName.get(id));
                }
            }
        }

        return formattedCountryIdName;
    }