title: Splitting a string into 2-letter segments
body: <p>I have a string, which I need to split into 2-letter pieces. For example, <code>'ABCDXY'</code> should become <code>['AB', 'CD', 'XY']</code>. The behavior in the case of odd number of characters may be entirely arbitrary (I'll check the length in advance).</p>
  
  <p>Is there any way to do this without an ugly loop?</p>