On 20.04.2011 18:54, Cyril Jose wrote: > Hans Mackowiak wrote in post #994076: >> str = ">Hello World\n" >> str[1..-2] #=> "Hello World" > > Forgot to mention that I have a bunch of these types of strings of all > different lengths...thanks for the quick reply however! Hans's suggestion does work with different length strings irb(main):001:0> 5.times {|i| s="a"+("b"*i)+"x";puts s, s[1..-2]} ax abx b abbx bb abbbx bbb abbbbx bbbb => 5 Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/