How do I remove the " and ” characters?

HI @ppr PPR
Thank you for your suggestions and commitment. We solved the problem after hints @Yoichi . It consisted not of an incorrect trimEnd call, but of settings at the Encoding.RegisterProvider level.