iterate over all the characters using a block
thoreau = "asdfasdfasdf" thoreau.each_byte do |c| print c.chr, "/" end