void (final Trim trim, final String text) { final int tlen = text.length(); if (tlen == 0) { return; } String toadd = null; switch (trim) { case NONE: toadd = text; break; case BOTH: toadd = Format.trimBoth(text); break; case LEFT: toadd = Format.trimLeft(text); break; case RIGHT: toadd = Format.trimRight(text); break; case COMPACT: toadd = Format.compact(text); break; } if (toadd != null) { toadd = escapeText(toadd); mtbuffer.append(toadd); mtgottext = true; } }