From: Gennady Date: 2003-03-12T11:38:14+09:00 Subject: Re: How to add a destructive method to the String class... Check out String#replace > class String > def capwords > self.split.each { |word| word.capitalize! }.join(" ") > end > end class String def capwords! replace split.collect { |word| word.capitalize }.join(" ") end end Mind that you loose information about original whitespaces, all of them are replaced with a single space character. Gennady.