     
     public var condensedWhitespace: String {
         #if os(OSX)
-            let components = self.components(separatedBy: CharacterSet.whitespacesAndNewlines)
+            let components = self.components(separatedBy: .whitespacesAndNewlines)
         #else
             let components = self.components(separatedBy: NSCharacterSet.whitespacesAndNewlines())
         #endif

    
    fileprivate func _containsAnEmoji() -> Bool {
        // Original Objective-C code by Gabriel Massana https://github.com/GabrielMassana
        // Adapted to Swift 3 by Eric Dejonckheere https://github.com/ericdke
        let hs = self.character(at: 0)
        // surrogate pair
        if 0xd800 <= hs && hs <= 0xdbff {

        return self.emojisWithoutLetters.count
    }
    
}