Replace StringBuffer with StringBuilder