From: Rails List Date: 2009-06-06T02:37:23+09:00 Subject: Re: How to capitalize first word of a string? Marc Heiler wrote: >> A little-known feature of "split" is the "limit" parameter > > Didn't know that one. :) Thanks for taking time to reply. much appreciated. Is there any way, I can capitalize the string and simultaneously convert the first word to bold. right now, i am splitting str.split(/\s+/).each{ |word| word.capitalize! } then upcase of str[0] and then str.each{ |word| }.join(' ') -- Posted via http://www.ruby-forum.com/.