return error if 1st argument is not a string