use stringbuilder for better multicore performance of formatter