Implementing wildcard filtering