fix stringbuffer to string