replace repeated instances of a character '*' with a single instance in a string 'text',"re.sub('\\*\\*+', '*', text)"