Enter "undefined" in self checking table

In prompting students for an answer in a table where the value is undefined, how do I adjust the code to read text rather than a number and if a number is entered, an error is displayed?