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