Handle string errors properly.