ruby upcase first letter code example Example 1: ruby first letter string Click to copystring = "toto" string[0] = "t" Example 2: upcase first letters in ruby Click to copy“mICHAel”.capitalize