                 }
             }
         }
-        if oldString.characters.count - 1 == string.characters.count {
+        if oldString.count - 1 == string.count {
             var changeCharIndex = 0
-            for i in 0..<string.characters.count {
+            for i in 0..<string.count {
                 let unicharString = string[i]
                 let charString = unicharString
                 let unicharString2 = oldString[i]

    func unformat(_ format: String, oldString: String) -> String {
        var string: String = self
        var undefineChars = [String]()
        for i in 0..<format.characters.count {
            let unicharFormatString = format[i]
            let charFormatString = unicharFormatString
            let charFormatStringUpper = unicharFormatString.uppercased()

            }

            newString += stringToAdd
            if counter == stringUnformated.count {
                if i == format.count - 2 {
                    let lastUnicharFormatString = format[i + 1]
                    let lastCharFormatStringUpper = lastUnicharFormatString.uppercased()
                    let lasrCharControl = (!(lastCharFormatStringUpper == String.ONLY_CHAR_UPPER) &&
