From: Jason Mcdonald Date: 2011-01-14T02:54:08+09:00 Subject: Re: Weird error using String#[] Robert, That example shows the same behavior in my console as you show above. So it is the \r that is causing it, it seems. I suppose the console sees the \r and tries to create a new line, can't, and overwrites what is there? The reason that it is one character too short is because the \r would count as 1. Thanks for the example! -- Posted via http://www.ruby-forum.com/.