How to wait for tab with title containing string?

Thanks ulrich for your answer. It works!

I was wondering if store | true/false | variable works for you? since

If I do store | false | variable, I get error
command[field].trim is not a function

and if I do store | true | variable, I get error
command.target.trim is not a function

Additionally, I’ve tried to check if title contains a string using “title.includes()…” and fails. It worked for me using LastIndexOf like in this post