Hi.
I did a quick test and it seems to work fine for me.

Try to set "Leaf" directly on the "Contains String'
or try on a new scene and set the values by hand and see if it work then.
how are you getting the search string?
It is possible it has a 'hidden' return (next line) which would give a false event