public static String validateCountry(String country) {
        if (country.length() > DEFAULT_COUNTRY_LEN) {
            return country.substring(0, DEFAULT_COUNTRY_LEN);
        }

        return country;
    }
public static String validateCountry ( String country ) { if ( country . length ( ) > DEFAULT_COUNTRY_LEN ) { return country . substring ( 0 , DEFAULT_COUNTRY_LEN ) ; } return country ; }
Validate the country property

@param country
@return