Say you have the string \"Hi\". How do you get a value of 8, 9 (\"H\" is the 8th letter of the alphabet, and \"i\"
\"Hi\"
8
9
\"H\"
\"i\"
use ord to get the ASCII index, and chr to bring it back.
ord
chr
'Hi'.chars.map{|x| (x.ord+1).chr}.join