added wildcard input functionality and test case for it