stringbuffer.reverse method example