Fixed StringIndexOutOfBoundsException in version string shorter than seven