Wildcard in a String does not work