Implemented isNumeric and string length checks to ensure that version numbers with a mismatched number of digits are compared properly