Image

Next little stumbling block...

Thank you all for the help the last time I needed it.
Today's issue is the newline ("\n")

I have an array full of strings. Every once in a while one of the elements gets a "\n" in the middle of the string it contains that I don't want. I do want the sub strings on either side of the newline. What is the easy/simple/direct way to remove that newline and replace it with a space?

I tried
pickData[1].replace('\n', ' ');
and saw no change in the behavior.

Thank you.