Searching user input string in a hash table

I have this but only works if the String is declared, but not if the user inputs it. Why is this?

public static void main(String[] args) {

    Scanner in = new Scanner(System.in);

    String[] elements = { "Achieve", "Across", "Apparently", "Appearance", 
            "Acronym", "Argument", "Assasination", "Accommodate" };

    // Making 8 available places fords words to go in
    SpellChecker theFunc = new SpellChecker(8);

    theFunc.hashFunction(elements, theFunc.theArray);

    System.out.println("Enter a word to search for");

    String Word = in.nextLine();

    //Works if i do this
    //String Word = "Achieve";

    theFunc.findKey(Word);
}