                 if eventScanner.scanUpTo("ATTENDEE;", into: nil) {
                     scannerStatus = eventScanner.scanUpTo("\n", into: &attendeeStringPointer)
                     attendeeString = String(attendeeStringPointer ?? "")
-                    if scannerStatus, attendeeString != "" {
+                    if scannerStatus, !attendeeString.isEmpty {
                         attendeeString = attendeeString.replacingOccurrences(of: "ATTENDEE;", with: "").replacingOccurrences(of: "\r", with: "")
                         if let attendee = createAttendee(string: attendeeString) {
                             attendees.append(attendee)

                exceptionString = String(exceptionStringPointer ?? "")
                exceptionString = exceptionString.replacingOccurrences(of: ":", with: "").replacingOccurrences(of: "\n", with: "").replacingOccurrences(of: "\r", with: "")

                if exceptionString != "" {
                    exceptionDates.append(exceptionString)
                }


            timezoneIDString = String(timezoneIDStringPointer ?? "")
            timezoneIDString = timezoneIDString.replacingOccurrences(of: "DTSTART;TZID=", with: "").replacingOccurrences(of: "\n", with: "")

            if timezoneIDString.isEmpty {
                // Extract event time zone ID
                eventScanner = Scanner(string: event)
                eventScanner.scanUpTo("TZID:", into: nil)
