x = StringBuilder.new 5.times do x.append "ha" end puts x # ==> "hahahahaha"