title: How to trim StringBuilder's string?
body: <p>How can we trim a <code>StringBuilder</code> value without the overhead caused by using <code>StringBuilder.toString().trim()</code> and thereby creating a new <code>String</code> and/or a new <code>StringBuilder</code> instance for each trim call?</p>