     }
     
     private func getTitle(suggestion: String) -> NSAttributedString {
-        guard let prefix = currentText else {
-            return NSMutableAttributedString()
-        }
+        
+        let prefix = currentText
         var title: NSMutableAttributedString!
         
         if let range = suggestion.rangeOfString(prefix) where range.startIndex == suggestion.startIndex {

    
    //MARK:- instance variables
    weak var delegate : QuerySuggestionDelegate? = nil
    private var currentText: String?
    
    
    init() {

    }
    
    func didEnterText(text: String) {
        currentText = text
        
        guard QuerySuggestions.isEnabled() && OrientationUtil.isPortrait() else {
            self.hidden = true
            return
        }
        
        guard !text.isEmpty else {
            clearSuggestions()
            return
