title: Javascript: how to separate bytes in a string
body: <p>Lets say I have a bytes like this:</p>
  
  <pre><code>"b'ab' b'xy'"
  </code></pre>
  
  <p>Now I want to split it into two separate bytes and then will convert it into string. The out should look like:</p>
  
  <pre><code>"b'ab'"   
  "b'xy'"
  </code></pre>
  
  <p>I tried javascript slicing but it won't work as this is a stream of data. So previously if I have these <code>"b'ab' b'xy'"</code> bytes then in the next turn it could be <code>"b'abc' b'xyz'"</code>  </p>