remove spaces in every where in the string python : <p>I have below string</p>

<pre><code> a = " Get a Pen"
</code></pre>

<p>Code:</p>

<pre><code> if a.lower().strip() == "get a pen"
     print "removed white spaces"
</code></pre>

<h1>need help to achieve remove all spaces in the string</h1>

<pre><code> if a.lower.().strip() =="getapen" # which is the easiest way remove all spaces
      print "remove all spaces in the string"
</code></pre>
