Remove line break with space

Hi .

I have the chain follower
S1234567
981
I am using this command (PageCounter2.Replace (Environment.NewLine, String.Empty) .ToUpper) to remove line breaks and the string looks like this
S1234567981
How can I do that when I eliminate the line break that gives a space like this
S1234567 981
Thanks for your help

@cristian_urrego

you can use like below

(PageCounter2.Replace (Environment.NewLine, " "). ToUpper)

It will add a whitespace

Hope this helpss

Thanks

@Srini84

Thank you very much for your help I was drowning a glass of water

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.