Refactor wildcard matching to use manipulateVersionString