- String orig3 = ResidueProperties.aa2Triplet.get(orig);
- sb.append(orig3 == null ? orig : StringUtils.toSentenceCase(orig3));
+ for (int c = 0, clen = orig.length(); c < clen; c++)
+ {
+ char origchar = orig.charAt(c);
+ String orig3 = ResidueProperties.aa2Triplet.get("" + origchar);
+ sb.append(orig3 == null ? origchar
+ : StringUtils.toSentenceCase(orig3));
+ }
+