title: Remove spaces and tabs within a string in python
body: <p>How can I remove specific whitespace within a string in python.</p>
  
  <p>My input string is:,</p>
  
  <pre><code>str1 = """vendor_id\t: GenuineIntel
          cpu family\t: 6
          model\t\t: 58
          model name\t: Intel(R) Core(TM) i3-3120M CPU @ 2.50GHz
          stepping\t: 9
          cpu MHz\t\t: 2485.659
          cache size\t: 6144 KB
          fpu\t\t: yes
          fpu_exception\t: yes
          cpuid level\t: 5
          wp\t\t: yes"""
  </code></pre>
  
  <p>My required output is:</p>
  
  <pre><code>&gt;&gt;&gt;print str1
  vendor_id: GenuineIntel
  cpu family: 6
  model: 58
  model name: Intel(R) Core(TM) i3-3120M CPU @ 2.50GHz
  stepping: 9
  cpu MHz: 2485.659
  cache size: 6144 KB
  fpu: yes
  fpu_exception: yes
  cpuid level: 5
  wp: yes
  </code></pre>