title: Iterating through a string two characters at a time
body: <p>I have a string of data that I need to read the first two characters from, use, and then discard. </p>
  
  <p>For example, </p>
  
  <pre><code>code = '2436444423'
  </code></pre>
  
  <p>I want to take the '24' assign it to a value 'x' and delete the '24' from the original string leaving it as:</p>
  
  <pre><code>code = '36444423'
  </code></pre>
  
  <p>and then assign '36' to 'y', delete it, '44' to 'z' and so on until the original string is empty.</p>