title: How do I trim whitespace?
body: <p>Is there a Python function that will trim whitespace (spaces and tabs) from a string?</p>
  <p>So that given input <code>&quot;  \t example string\t  &quot;</code> becomes <code>&quot;example string&quot;</code>.</p>