 
     func stringByReplacingOccurrences(_ string: String, map: [String: String], keepUnmapped: Bool = false) -> String {
         var targetString = String()
-        for i in 0..<string.count {
+        for i in 0 ..< string.count {
             let oneChar = string[string.index(string.startIndex, offsetBy: i)]
             let keyString = String(oneChar).uppercased()
             if let mappedValue = map[keyString] {

            return false
        }
        pattern = "^(\(pattern))$"
        return self.matchesExist(pattern, string: string)
    }

    func matchedStringByRegex(_ pattern: String, string: String) throws -> [String] {

        do {
            let regex = try NSRegularExpression(pattern: pattern, options: .caseInsensitive)

            regularExpressionPoolQueue.sync {
                regularExpressionPool[pattern] = regex
            }

            return regex
