I think your suggestion may work. I guess the best way to approach this problem would be to get the length and if the length = 3 then use chomp and then substring the numeric charcter out of the string and pass it to a variable. Then the same would hold true for other similar situations??
TIA-
ep