title: TWIG how to get the first word of a string?
body: <p>I've got a string and I want to </p>
  
  <ul>
  <li><strong>isolate the first word</strong> for styling with <code>style1</code> and </li>
  <li>display the rest of the string with <code>style2</code> <strong>without the first word</strong>. </li>
  </ul>
  
  <p>Something like that : </p>
  
  <pre><code>&lt;span class="style1"&gt;{{ string|firstword() }}&lt;/span&gt;
  &lt;span class="style2"&gt;{{ string|restofstring() }}&lt;/span&gt;
  </code></pre>
  
  <p>Is it possible ? Thank you in advance.</p>