It's str() rather than string(), but use repr() here.