Could someone please explain how to remove consecutive duplicates from a string? I got the code from a website and I fairly understand it but I ma still drawing blanks at so