結果 : remove consecutive duplicate characters in a string python