title: Remove a word and everything after
body: <p>Let's say I have a string:</p>
  
  <pre><code>"C:\Program Files (x86)\Steam\steam.exe /lets go 342131 some random text"
  </code></pre>
  
  <p>And I want to remove from that string the 'steam.exe' and everything that follows after that. So my trimmed string would look like:</p>
  
  <pre><code>"C:\Program Files (x86)\Steam\"
  </code></pre>
  
  <p>How can I do that in C#?</p>