Replaced stringbuffer with stringbuilder