if input contains 1 or 0 words, getTask() returns null