 //
 extension KSTokenView : UITextFieldDelegate {
    public func textField(textField: UITextField, shouldChangeCharactersInRange range: NSRange, replacementString string: String) -> Bool {
-      
+    
       // If backspace is pressed
       if (_tokenField.tokens.count > 0 && _tokenField.text == KSTextEmpty && string.isEmpty == true && shouldDeleteTokenOnBackspace) {
          if (_lastToken() != nil) {

         _tokenField.placeholder = newValue
      }
   }
   
   /// default is .Rounded, creates rounded corner
   public var style: KSTokenViewStyle = .Rounded {
      didSet(newValue) {

      if (shouldAddTokenFromTextInput && tokenField.text != nil && tokenField.text != KSTextEmpty) {         
         let trimmedString = tokenField.text!.stringByTrimmingCharactersInSet(NSCharacterSet.whitespaceCharacterSet())
         addTokenWithTitle(trimmedString)
         _hideSearchResults()
         return true
      }
      return false
