wildchard match: save time, save memory