Ruby memanfaatkan karakter kalimat pertama
a = "apples and oranges are two diffERent Fruits."
a.split.each{|i| i.capitalize!}.join(' ')
=> "Apples And Oranges Are Two Different Fruits."
Fancy Flamingo