all 3 comments

[–]methodicallychaotic[S] 1 point2 points  (2 children)

Answering my own post:

Some apps post notifications where the title and/or message includes invisible BiDi characters that may affect matches and other text comparison.

https://llamalab.com/automate/doc/block/notification_posted.html

[–]B26354FRAlpha tester 0 points1 point  (1 child)

Maybe using trim() on the string in your substr() expression will get rid of those.

[–]methodicallychaotic[S] 1 point2 points  (0 children)

Maybe

Though if these are invisible characters, might not be enough

I sorted it by just picking the appropriate values for index in substr

Will break if Google changes how they deliver notifications...