I got a string;
"Enviroment is dangerous.123"
Now I want to remove everything after "dangerous" so the result will be
"Enviroment is dangerous"
I got different text strings of different length. So it needs to respond to the string "dangerous"
How do I do that?