title: Find first word in string Python
body: <p>I have to write a single function that should return the first word in the following strings: </p>
  
  <pre><code>("Hello world") -&gt; return "Hello"
  (" a word ") -&gt; return "a"
  ("don't touch it") -&gt; return "don't"
  ("greetings, friends") -&gt; return "greetings"
  ("... and so on ...") -&gt; return "and"
  ("hi") -&gt; return "hi"
  </code></pre>
  
  <p>All have to return the first word and as you can see some start with a whitespace, have apostrophes or end with commas. </p>
  
  <p>I've used the following options:</p>
  
  <pre><code>return text.split()[0]
  return re.split(r'\w*, text)[0]
  </code></pre>
  
  <p>Both error at some of the strings, so who can help me???</p>