if (sites.endsWith(")")) {
sites = sites.replace("(", "");
sites = sites.replace(")", "");
for (int i = 0; i < sites.length(); i++) {
mass = Double.parseDouble((String) section.get(name));
mods.add(new ModificationPeptide(name, mass, sites.charAt(i),
fixed));
}
}
return mods.toArray(new ModificationPeptide[0]);
}