From: "Jan E." Date: 2012-07-05T03:46:49+09:00 Subject: Re: Insert letters of the alphabet between the original letters of a string Hi, What's "cad"? It isn't defined anywhere. Apart from that, the calculation of the indices for insertion is wrong. You start with 2 instead of 1, and you don't take into account that the string is growing with each step. The indices have to be 1, 3, 5, 7, ... # repeat the characters infintely, because the string may have any length alphabet = ('a'..'z').cycle string = "String" 0.upto string.length - 2 do |i| string.insert 2 * i + 1, alphabet.next end puts string But like I already said in your last thread: Ruby isn't Java. You need to get rid of this strange "for" loop. -- Posted via http://www.ruby-forum.com/.