Use built in Version class for error proofing the check.