Optimize a StringBuilder.