LPS-35826 The comparisons must always be based on integers.

A side effect of this change is that the class is now effectively ignoring any number after the fourth, but that is fine since it didn't work properly in that case anyway.
LPS-35826 Consider the case of using + in the buildNumber