title: How can I control substring length by ending it with a specific character?
body: <p>I have a string, "s", which I would like to obtain a substring of by starting a the begging (position 0), and end at a space- so that if someone were to, for instance, enter their full name, I could determine their first name.</p>
  
  <p>I could have sworn their was a substring function that could 'search' until a certain character was found.  Thanks in advance!</p>