Why doesn't StringBuilder have a trim() method?
<p>Why doesn't StringBuilder have a <code>trim()</code> method? How can we trim a <code>StringBuilder</code> value without using <code>StringBuilder.toString().trim()</code>?</p>

<p>Actually i am in a loop where i have to compare this StringBuilder string with many other values so if i call StringBuilder.toString().trim() each time, it will create a new instance and i don't want to create a new String object each time</p>
