From: Michal Suchanek Date: 2011-08-31T23:19:42+09:00 Subject: Re: Prepend a character to a string in ruby On 31 August 2011 13:44, Marc Heiler wrote: > Another way: > > > x = "foobar" # => "foobar" > x[0,0] = "this is prepended " # => "this is prepended " > x # => "this is prepended foobar" > > x variable now is "this is prepended foobar" as you can see from IRB > output. This is nice. It is sad there is no obvious method for that. Thanks Michal