how to get the first letter of a string ruby code example Example: ruby first letter string string = "toto" string[0] = "t"