Check if st2.user contains a character as part of when statement

in Orquesta yaml wf, is there a way to have something like this:

- when: <%failed and ctx().st2.user.startswith("test") %>

purpose is to be able to check if the st2.user response has a particular character in it, in this case “test”