title: Finding a string within a text box and getting how far that is from the start of the textbox
body: <p>eh sorry for the long title but anyway back to the point I have been looking around for a while now I can't find anything to help me ok so my "problem" is that i got a string within my appand I need to goto a char and remove all text after it
  example of what i wanted help with:</p>
  
  <pre><code>string S = "Somthing_SetSomthing   ExtraUnwantedTextHere";
  </code></pre>
  
  <p>and then I want to remove everything but the first set of chars up until the space bar</p>
  
  <p>and here is a screen shot of a real world example of what I wanted help with
  <a href="https://i.gyazo.com/e2bfe3d19b76cab8bc3f4d39d2c96b45.png" rel="nofollow">https://i.gyazo.com/e2bfe3d19b76cab8bc3f4d39d2c96b45.png</a></p>
  
  <p>Thanks in advance C:</p>