title: How to remove whitespace and \n from list of strings in Python?
body: <p>I have list of strings includes whitespace and \n like below.</p>
  
  <pre><code>['XXXXX',
    '\n\n                YYYYYYY\n              \n',
    'HHHHH',
    '\n\n                ZZZZZ\n              \n']
  </code></pre>
  
  <p>I have tried map, strip, and the others, but it did not work.
  Could you help another way to fix this?</p>
  
  <p>This list of strings from HTML table by web scraping, so there are a lot of whitespace and \n on it.</p>