From: Gavin Kistner Date: 2006-10-21T07:18:48+09:00 Subject: Re: multi dim array? From: Gijs Nijholt > def translate_to_braille(msg) I think you want the String#tr method. It replaces each character in a source string with its corresponding character in a replacment string: normal_alphabet = "abcdefghijklmnopqrstuvwxyz" rot13_alphabet = "nopqrstuvwxyzabcdefghijklm" msg = "hello world!" puts msg.tr( normal_alphabet, rot13_alphabet) #=> uryyb jbeyq!