Filter function that should be faster than regex. Basic AC-3 mebe kinda sorta