class MmffAromaticTypeMapping {

    static String getAromaticType(Map<String, String> map, char suffix, String symb, boolean imidazolium, boolean anion) {
        if (anion && symb.startsWith("N")) symb = "N5M";
        if (map.containsKey(symb)) symb = map.get(symb);
        if ((imidazolium || anion) && symb.charAt(symb.length() - 1) == suffix)
            symb = symb.substring(0, symb.length() - 1);
        return symb;
    }

      MmffAromaticTypeMapping();

}