From: "Mark J. Reed" Date: 2003-09-24T02:54:32+09:00 Subject: Re: [newbie] upper to lower first letter of a word On Tue, Sep 23, 2003 at 05:49:24PM +0000, Mark J. Reed wrote: > string.gsub!(/(^|[- '])([a-z����������������]+)/) { $1 + $2.capitalize } Left off the blacklist check, which should be applied to $2: string.gsub!(/(^|[- '])([a-z����������������]+)/) { black_list.include?($2) ? $1 + $2 : $1 + $2.capitalize } -Mark