You need to look more closely at your data, and work out more accurately exactly what you are trying to do.
At the moment the data you supply is inconsistent: You show some CRLF characters, but your text as required contains "invisible" newlines:
"amit","30122018","1234567890","please insert correct date"CRLF
"punit","30122018","abcd123457","please insert correct date
**
please correct mobile no, invalid records"CRLF
You show two CRLF pairs, but there are three "hidden" ones inside your final string (because without them your data would look like this:
"amit","30122018","1234567890","please insert correct date"
"punit","30122018","abcd123457","please insert correct date **please correct mobile no, invalid records"
With just two newlines - one at the end of each line.
So start by looking at the data as a byte stream (using a hex editor for example) and work out exactly what you input is. Then decide exactly what you binary output should be. Once you have worked that out, it should be pretty trivial to process: copy up to first double quotes, then find matching quote: remove unwanted newlines between them. Repeat to end of string.
That's a pretty trivial single loop to code!