transform to string type before escape