The error is due to the fact that text needs to be delimited with quotes. Your original code, which does not use delimiters would work with a Numeric field.
For text, you need to enclose the name in quotes. As in previous comments, this will work in most cases:
pls try
Open in new window