String word = node.getWord(); char[] letters = new char[word.lastIndexOf(word)]; word.getChars(0,word.lastIndexOf(word),letters,0);