title: Remove everything after space in string
body: <p>I would like to remove everything after a space in a string.  </p>
  
  <p>For example:</p>
  
  <pre><code>"my string is sad"
  </code></pre>
  
  <p>should return </p>
  
  <pre><code>"my"
  </code></pre>
  
  <p>I've been trying to figure out how to do this using sub/gsub but have been unsuccessful so far.  </p>