I am trying to compare two strings and then do something. The first string is a string that is captured in UITextView using the following code:********************************** func updateIncomingData () { NotificationCenter.default.addObserver(forName: NSNotification.Name(rawValue: Notify), object: nil , queue: nil) { notification in let appendString = n let myFont = UIFont(name: Helvetica Neue, size: 30.0) let myAttributes2 = [NSFontAttributeName: myFont!, NSForegroundColorAttributeName: UIColor.red] let attribString = NSAttributedString(string: + (characteristicASCIIValue as String) + appendString, attributes: myAttributes2) let newAsciiText = NSMutableAttributedString(attributedString: self.consoleAsciiText!) self.password_P_F.attributedText = NSAttributedString(string: characteristicASCIIValue as String , attributes: myAttributes2) newAsciiText.append(attribString) self.consoleAsciiText = newAsciiText self.password_P_F.attributedText = self.consoleAsciiText let pwmatch:String = The p