title: Compare two strings ignoring new line characters and white spaces
body: <p>I need to compare two strings ignoring whitespaces and newline characters, so the following strings should be equal:</p>
  <pre><code>&quot;Initial directory structure.\r\n    \r\n    The directory tree has been changed&quot;
  &quot;Initial directory structure.\n\nThe directory tree has been changed&quot;
  </code></pre>
  <p>How can I implement it?</p>