intent: How to replace repeated instances of a character with a single instance of that character in python
rewritten_intent: Replace repeated instances of a character '*' with a single instance in a string 'text'
snippet: re.sub('\\*\\*+', '*', text)