class GeosupportVersion {

    String formatVersion(String version)
    {

        String v = version.trim();
        // Remove trailing zeros
        while (v.endsWith("0"))
        {
            v = v.substring(0, v.length() - 1);
        }
        // Remove leading zeros
        while (v.startsWith("0"))
        {
            v = v.substring(1);
        }
        int len = v.length();
        switch (len)
        {
        case 0:
            return VERSION_NOT_AVAILABLE;
        case 3:
        case 4:
            v = v.substring(0, 2) + "." + v.substring(2);
            break;
        default:
            // It is 1 or 2 characters, so do nothing
            break;
        }
        return v;
    }

    public  GeosupportVersion();

}