title: How to convert a string with space between the lines to a new string with out any line spaces
body: <p>I have a string with space between the lines, like this:</p>
  
  <pre><code>String name = "This is the \n example of the string";
  </code></pre>
  
  <p>And I want to convert the string to this: <code>"This is the example of the string"</code>, without any spaces between the lines.
  How do I do that?</p>
  
  <p>Thanks!</p>