Determine if a string is collapsible: Difference between revisions