$rightmost_position_of_letter = rindex ($str,[A|T|C|G]);