replace useless stringbuffer with string