title: Reconstituting Strings in Python
body: <p>I would like to do something like:</p>
  
  <pre><code>temp=a.split()
  #do some stuff with this new list
  b=" ".join(temp)
  </code></pre>
  
  <p>where a is the original string, and b is after it has been modified. The problem is that when performing such methods, the newlines are removed from the new string. So how can I do this without removing newlines?</p>