how do i coalesce a sequence of identical characters into just one?,"print(re.sub('-+', '-', astr))"