                 suggestion.lowercaseString.hasPrefix(searchTerm.lowercaseString))
             {
                 var suggestionToReturn = searchTerm
-                suggestionToReturn = suggestionToReturn + suggestion.substringWithRange(Range<String.Index>(start: suggestion.startIndex.advancedBy(searchTerm.characters.count), end: suggestion.endIndex))
+                suggestionToReturn = suggestionToReturn + suggestion.substringWithRange(suggestion.startIndex.advancedBy(searchTerm.characters.count) ..< suggestion.endIndex)
                 
                 returnString = suggestionToReturn
                 break

     Set content of the suggestion label.
     - parameter text: Suggestion text
     */
    private func setLabelContent(var text : String = "")
    {
        // label string
        if(text.characters.count < 1) {
            label.attributedText = nil

        }
        
        // only return first word if in word mode
        if self.autocompleteType == .Word {
            let words = self.text!.componentsSeparatedByString(" ")
            let suggestionWords = text.componentsSeparatedByString(" ")
            var string : String = ""
            
            for i in 0 ..< words.count {
                string = string.stringByAppendingString(suggestionWords[i]) + " "
            }
            text = string
