Dynamic Renaming of Custom:Auto-Entities

Hi All,

I am using the Theme Parks Queue addon - which brings all the rides from the parks I want to track the queue times off into my Auto Entities card - is there a way, without having to go through each entitity one by one to remove the park name off the end - such as (Alton Towers Resort)

Code for the auto entities card is:

type: custom:auto-entities
card:
  type: entities
  title: Alton Towers Resort
  show_header_toggle: false
filter:
  include:
    - name: /Alton/
  exclude:
    - state: unknown
sort:
  numeric: true
  reverse: true
  method: state

I know the auto-entities card has a filter option, but I can’t work out how to remove the text:

type: custom:auto-entities
card:
  type: entities
filter:
  template: |
    {% for light in states.light %}
      {% if light.state == "on" %}
        {{ light.entity_id}},
      {% endif %}
    {% endfor %}

Thanks
Leacho