I'm trying to build an XML for a soap request. cannot assign variable

we achieved this by analyzing the malicious text within a hex editor and found out that some chars were different but differences were invisible. In majority caused by copy paste. But more investigating why / what was root causing the issue we also stopped as we just focused on the fix.

However, whenever we have doubts that correct statements are not accepted we do a fresh retype and in the past we solved most issues by this approach in little time