Workflow - Compare complex string

Hello @jsosa
Thank you so much for your time and your feedback.
However, I’m not sure this could help for the context. Indeed, after getting roles (by Http Request), I’m using a loop to check if roles have assigned identities. I want to exclude some roles from the check and the format role names is “word1 xyz word2”.
“word1” and “word2” are the same for all the roles.

One solution is to use the compare strings and specify all the ids (I want to avoid it since I have more than 100 roles).

Thank you so much.