         var regionMetaData =  self.metadata.metadataPerCountry[region]!
         
         var extractedCountryCode: ExtractedCountryCode
+        
         do {
             extractedCountryCode = try self.parser.extractCountryCode(nationalNumber, metadata: regionMetaData)
         }

                throw PNParsingError.InvalidCountryCode
            }
        }
        nationalNumber = extractedCountryCode.nationalNumber
        var countryCode = extractedCountryCode.countryCode
        var format = PNNumberFormat.National
        if (countryCode == 0) {
            countryCode = regionMetaData.countryCode
        }
        else {
            finalString = "+\(countryCode)"

    
    
    func normalizePhoneNumber(number: String) -> String {
        if let result = regex.stringByReplacingOccurrences(number, map: PNPartialFormatterNormalizationMappings, removeNonMatches: true) {
            return result
        }
        return number
    }

}
