Let the text property of TextField be a little more tolerant in case it gets assigned something other than a string.