Consecutive Character Collapse - Coding problem | OneNoughtOne