How do you filter query node results based on partial type/family names?

I am trying to figure out how to query types/families based on partial names. Right now I am using a panel with multiline data turned off feeding into a query node, and it works perfectly fine if I know the exact full names of the families/types I’m trying to query. However, that is not as user friendly as I would like the script to be. For example, imagine I have the following families in a project:

Upper Cabinet 1: Glass
Upper Cabinet 2: Double Door
Upper Cabinet 3: Half Glass
Upper Cabinet 4: Single Door

As I have the script now, if I enter these exact names into the panel and feed it into the type query node, the node returns these families’ types. However, I would like it so that I can simply put in “upper cabinet” and return all families with “upper cabinet” in their name. Is there a way to do this? I’ve tried messing around with filters and it hasn’t worked, but I’m a bit new to Rhino.Inside so I’m not sure I’m doing it right. Any ideas would be great.

check this post… for your case “<Upper Cabinet” should work