fix and test for ? mark in wildcards