ruby1.9 has no 'each' method for string