Implement StringBuilder.setLength