added minlength for wildcards