Fix bugs caused by typos in AddressFormatValidator.