From: "Pål Bergström" Date: 2008-08-20T05:08:02+09:00 Subject: Re: Cut a string if length > n This seems to do the trick. Will it always work? lastspace = message.message[0..70].rindex(" ") puts message.message[0..lastspace.to_i] -- Posted via http://www.ruby-forum.com/.