Return information about characters used in a string