     }
     
     required public init?(coder decoder: NSCoder) {
-        if let version = decoder.decodeObject(of: NSString.self, forKey: "version") as? String {
+        if let version = decoder.decodeObject(of: NSString.self, forKey: "version") as String? {
             self.version = version
         } else {
             return nil

            }
            
            if scanner.scanString("}", into: nil) {
                if let tokenType = TokenType(description: token as! String) {
                    var replacement: String
                    switch tokenType {
                    case .wayName: replacement = wayName

                    }
                }
            } else {
                result += token! as String
            }
            
        }
