title: Remove a part of a string
body: <p>I got a string;</p>
  
  <pre><code>"Enviroment is dangerous.123"
  </code></pre>
  
  <p>Now I want to remove everything after "dangerous" so the result will be</p>
  
  <pre><code>"Enviroment is dangerous"
  </code></pre>
  
  <p>I got different text strings of different length. So it needs to respond to the string "dangerous"</p>
  
  <p>How do I do that?</p>