Getting a part of a string in a rule

You are right, before I tried with event.state and there I had the problem, that I didn’t get a state.