title: Using split to split in one context but not in another
body: <p>So currently I am working on some SQL with python which is linked to my database and I am stuck on a split problem. So in the program it connects to the database and then next you input either list, add, update, remove or allocate. So lets say I want to add a new data into the database you just need to write: <strong>update -name='Ava - #2' -class=2</strong>. </p>
  
  <blockquote>
    <p>After you type this there is a variable called val which does the strip and split.</p>
  </blockquote>
  
  <p>So as of right now what I have done is:</p>
  
  <pre class="lang-py prettyprint-override"><code>val = input('&gt; ').strip().lower()
  parts = val.split(' ')
  print(parts)
  </code></pre>
  
  <p>So if I input the following:
  update -name="Nile Adam" -class=2</p>
  
  <p>I expect the following output: ['update', '-name="Nile Adam"', '-class=2']</p>
  
  <p>However the output I get is: ['update', '-name="Nile', 'Adam"', '-class=2']</p>