replaceStringBuffer with StringBuilder