Problems in function ExpandForWildCards