Getting the alphabet of a string