java stringbuffer trimToSize() example