ruby get first character of string code example Example: ruby first letter string string = "toto" string[0] = "t"