title: How to remove triplicate letters and leave duplicate in python?
body: <p>Basically, I want to leave the double letters like 'ss' in guess and remove the 'iiiiiiiiiiiiiiii'</p>
  
  <p>I'm cleaning data for text analytics.</p>
  
  <pre><code>s_input = "guess who just got shoes boiiiiiiiiiiiiii"
  
  print(''.join(i for i, _ in itertools.groupby(s_input ))) #this also takes out the 'ss' in guess
  
  &gt;"guess who just got shoes boi"
  </code></pre>
  
  <p>The intent is to get the following
       "guess who just got shoes boi"</p>
  
  <p>notice, 'guess' keeps the 'ss'</p>