private boolean validWordLength(String[] words, String word, int length)
            throws IOException {
        String firstWord = words[0].trim().toLowerCase();
        if (firstWord.equals(word)) {
            if (words.length == length) {
                return true;
            } else {
                throw new IOException("begin need " + length + " arguments");
            }
        } else {
            return false;
        }
    }