title: How to extract substring from a 'binary string' in python3
body: <p>I have a string <code>b'helloworld\n'</code>. I want to extract <code>helloworld</code> from it. For this, I am doing</p>
  
  <p><code>print(string[1:-2])</code></p>
  
  <p>But on output I am getting <code>b'elloworl'</code>.</p>
  
  <p>How can I extraxt helloworld.</p>
  
  <p>Thanks</p>