From: Sascha Abel Date: 2010-03-01T19:19:18+09:00 Subject: Re: Strings - foovs.. foo[-1,0] ? string[i,1] gives you the char at index i, string[i,0] gives you not the char but some kind of a marker just *before* that char. So string[i,1]= 'X' overwrites that char, while string[i,0] = 'X' inserts before it. string[-1,1] gives you the last char of string, accordingly string[-1,0] gives you that marker just *before* the last char. You would have to do something like string[-0,0] to get *behind* the last char if you want to count from the end of the string, which is not possible so you have to count from the beginning: string[string.size,0] -- Posted via http://www.ruby-forum.com/.