title: How to remove duplicates only if consecutive in a string?
body: <p>For a string such as <code>'12233322155552'</code>, by removing the duplicates, I can get <code>'1235'</code>.</p>
  
  <p>But what I want to keep is <code>'1232152'</code>, <strong>only removing the consecutive duplicates.</strong> </p>