Refactor wildcard matching ot use manipulateVersionString