             return ""
         }
         let words = text?.components(separatedBy: " ")
-        return words![words!.count-1]
+        return words![words!.count - 1]
     }
 }

    
    func getAutoCompleteWord() -> String {
        var searchTerm = curWord + keyboardRows[selectedRowIndex][selectedCharIndex]
        for i in dictStart...(dictionary.count-1) {
            if (dictionary[i].characters.count >= searchTerm.characters.count) {
                if (dictionary[i].hasPrefix(searchTerm.lowercased())) {
                    return dictionary[i]

    }

    func getPositionInDictionary() -> Int {
        for i in dictStart...(dictionary.count - 1) {
            if (dictionary[i].characters.count > curWord.characters.count) {
                if (dictionary[i].hasPrefix(curWord.lowercased())) {
                    return i
