2 choices — rm since this is commented out? or fix it to not be a lie ;) i think you can do:

StringBuilder.setLength(0);
StringBuilder.trimToSize();