From: Joel VanderWerf Date: 2004-06-23T04:36:43+09:00 Subject: Re: Newbie question - how to replace multiple whitespace within astring? Brian Tully wrote: > Should I use state.squeeze(" ") to ensure that it always returns the state > even if nothing was changed? squeeze! seems to return nil if nothing needs > to be changed. str.squeeze! is destructive (changes the String object referred to by str), and str.squeeze is not. So it just depends on whether you need to keep the original string intact (I'd guess not).