Update wildCard Method to process WildCard Queries