     */
     internal func cooldownTimerFired(timer: NSTimer) {
         if ((self.filterString?.characters.count) != nil) {
-            self.mentionsManager.showMentionsListWithString(self.filterString!)
+            let filter = self.filterString?.stringByReplacingOccurrencesOfString("\n", withString: "")
+            self.mentionsManager.showMentionsListWithString(filter!)
         }
     }
 

        let substring = (textView.text as NSString).substringToIndex(range.location) as NSString

        var mentionEnabled = false

        let location = substring.rangeOfString(
            trigger as String,
            options: NSStringCompareOptions.BackwardsSearch).location

                //Determine whether or not a space exists before the trigger.
                //(in the case of an @ trigger this avoids showing the mention list for an email address)
                let substringRange = NSRange.init(location: location - 1, length: 1)
                textBeforeTrigger = substring.substringWithRange(substringRange)
                mentionEnabled = textBeforeTrigger == " " || textBeforeTrigger == "\n"
              print(textBeforeTrigger)
            }
        }

        if mentionEnabled {
            if let stringBeingTyped = substring.componentsSeparatedByString(textBeforeTrigger).last {
                if ((stringBeingTyped as NSString).rangeOfString(trigger as String).location != NSNotFound) {

                    self.currentMentionRange = (textView.text as NSString).rangeOfString(
