title: Removing spaces in python input
body: <p>I've been trying to use .upper and .replace to turn non standard input like "helLo    woRLD" to "HELLOWORLD" to make it easier to handle.</p>
  
  <p>This seems so simple, and it works fine to turn it to uppercase, but it simply won't remove the spaces.</p>
  
  <p>Code:</p>
  
  <pre><code>cmd = input("Please input a command: ")
  cmd = cmd.upper()
  cmd.replace(" ","")
  print("%s" % (cmd))
  </code></pre>
  
  <p>With this, if I enter "Hello World" it would print "HELLO WORLD" with the spaces still there, and I have no idea why it's not working.</p>
  
  <p>EDIT: This is embarrassing, I just realized a literally had to do</p>
  
  <pre><code>cmd = cmd.replace(" ","")
  </code></pre>
  
  <p>instead of what I had, flagging this because I figured it out</p>