in reply to How to remove Newline

First off, why did you start a new thread after having asked the very same question (I suppose, because the latter is screwed up) in another thread?

Said this,

Whatever, the easiest solution I can think of to solve your problem would be of removing the newlines before processing your data. If that data is huge and e.g. read from a file, you may want to do so (joining lines or bunch of lines) in a smart way, which you will have to devise.