             var buffer: NSString?
 
             if scanner.scanUpTo("{", into: &buffer) {
-                result += buffer as! String
+                result += buffer! as String
             }
             guard scanner.scanString("{", into: nil) else {
                 continue

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

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