Media_title wildcard for masking screen

Hi I’m trying to do something similar as here:
https://community.home-assistant.io/t/media-title-wildcard/224873

In my case I want to make an automation to control my masking screen.
For example when a movie is playing with the string “235” in the title then i want to run the automation.
The state attribute is called: “media_title:”

How to use a wildcard in a State attributes? I guess I have to make a template but i don’t know how.

Ok, got the solution on the a Dutch forum:

alias: New Automation
description: ''
mode: single
trigger:
  - platform: state
    entity_id: media_player.tv_taart
    attribute: media_title
condition:
  - condition: template
    value_template: '{{ ''2351'' in state_attr(''media_player.tv_taart'', ''media_title'') }}'
action:
  - device_id: ''
    domain: ''
    entity_id: ''