Changed Array#to_s to Array#join for compatibility with 1.9.3