title: Algorithm to divide text into 3 evenly-sized groups
body: <p>I'm would like to create an algorithm that will divide text into 3-evenly sized groups (based on text length).  Since this will be put to use for line-breaks, the order of the text needs to be maintained.</p>
  
  <p>For instance this string:</p>
  
  <pre><code>Just testing to see how this works. 
  </code></pre>
  
  <p>would sort to:</p>
  
  <pre><code>Just testing   // 12 characters
  to see how     // 10 characters
  this works.    // 11 characters
  </code></pre>
  
  <p>Any ideas?</p>