Using The removeNewline() function and remove new lines from string and replace with one empty space.