StringIterator skips consecutive duplicate characters.
Expected Behavior:
A character iterator should process every character in the string, including consecutive duplicates (e.g., for the string "caables", both 'a' characters at indices 1 and 2 should be processed).
Current Behavior:
The iterator skips consecutive duplicate characters. For example, in the string "caables", the second 'a' (index 2) is ignored.
StringIterator skips consecutive duplicate characters.
Expected Behavior:
A character iterator should process every character in the string, including consecutive duplicates (e.g., for the string "caables", both 'a' characters at indices 1 and 2 should be processed).
Current Behavior:
The iterator skips consecutive duplicate characters. For example, in the string "caables", the second 'a' (index 2) is ignored.