Practice problem: Collapse the contents of a given string by removing all continuous repeated characters.