From: Chris Date: 2002-04-16T04:02:39+09:00 Subject: Re: Pascal to Ruby In article <46487A0D3619D511BF860000F6B99827D2C1CA@PRESGGS17>, "Firestone, Mark - Technical Support" wrote: > Well, ya... I have a bunch of text, in (in pascal terms) an array of string. > > I want to be able to insert somewhere so... Something like this perchance? class String def insert ( position, insert_string ) "#{self[0...position]}#{insert_string}#{self[position+1..-1]}" end end "foo".insert 1, "bar" # "fbaroo"