Modified a grammar for task's input and output to also accept a string without an index.