Remove Enter with tag -> Strange behavior

Hello,

I have this in a text file:
Report>
Administration>From declarerType=“BBBB”>000000/From>To>000/To>Domain>000/Domain>Response>Email>00000/Email>/Response>Target>00000/Target>/Administration>
Port>cvcvcv/Port>
/Report>

I want to remove the newline before
strReadXML.Replace(Environment.newline & “Port>”,“Port>”)

Works perfectly

but it seems not work when I have multiple lines in the txt file:
Report>
Administration>From declarerType=“BBBB”>000000/From>To>000/To>Domain>000/Domain>Response>Email>00000/Email>/Response>Target>00000/Target>/Administration>
Port>cvcvcv/Port>
/Report>
Report>
Administration>From declarerType=“BBBB”>000000/From>To>000/To>Domain>000/Domain>Response>Email>00000/Email>/Response>Target>00000/Target>/Administration>
Port>cvcvcv/Port>
/Report>

How can I solve this?

Kr,
Kris

may we ask you to use the format button </> from editor or better share input and expected output text file samples with us. We can more clear refer on what is targeted. Thanks