title: How can I get a variable that holds string that has multiple lines to be only one line?
body: <p>So I'm writing a program that uses OCR, and when I get an image with a line break and turn that into a string, and print it I get</p>
  
  <pre><code>hello there,
  how are you?
  </code></pre>
  
  <p>when I want</p>
  
  <pre><code>hello there, how are you?
  </code></pre>
  
  <p>How can I do this?</p>