coalesce non-word-characters in string `a`,"print(re.sub('(\\W)\\1+', '\\1', a))"