I am having an issue with a line break in my data. The array was made with an out-string followed by -split. If you want to see that part of the script let me know.
By default, 'Get-Content' command has the default delimiter of a new line '\n'. Create a costume parameter and then do your replace command. Hope this helps.