title: How to remove leading and trailing spaces from a string?
body: <p>I'm having a hard time trying to use <code>.strip</code> with the following line of code:</p>
  <pre><code>f.write(re.split(&quot;Tech ID:|Name:|Account #:&quot;,line)[-1])
  </code></pre>