modify to fit ruby1.8

modify to fit ruby1.8
in 1.8 [1,2].to_s => "12"
in 1.9 [1,2].to_s => "[1,2]"