From: Thomas Luedeke Date: 2013-04-18T05:41:06+09:00 Subject: Re: String index produces unanticipated result Thanks. I am running Ruby 1.8.7. That would explain why online irb gave me what I expected. What I used that worked was line[0..4].strip[0..0]. Makes me cringe, but it does work. Thanks for your explanation! -- Posted via http://www.ruby-forum.com/.