title: Is there a built-in function to extract all characters in a string up until the first occurrence of a space?
body: <p>Is there a built-in function to extract all characters in a string up until the first occurrence of a space?</p>
  
  <p>Say the string is:</p>
  
  <blockquote>
    <p>Methicillin-resistant staphylococcus aureus</p>
  </blockquote>
  
  <p>I want to be able to get the substring:</p>
  
  <blockquote>
    <p>Methicillin-resistant</p>
  </blockquote>