Use stringbuilder instead of stringbuffer