Add utility method for comparing version strings