From: Stephen Ball Date: 2008-10-15T03:54:38+09:00 Subject: Re: Remove only TRAILING whitespace str = " string " rightTrim = str.rstrip => " string" # for completeness leftTrim = str.lstrip => "string " On Tue, 14 Oct 2008 14:46:43 -0400, Bob Smyph wrote: > Is there any way to only remove trailing white space from a string. I > have tried to use strip but that will also take off leading white space > and I want to keep that. > > any help is appreciated