I'm a little stuck. How do I remove multiple newlines which are in a row with one newline. There could be anything up to 20 newlines next to each other. For example
James said hello\n\n\n\n Test\n Test two\n\n
Would end up as:
James said hello\n Test\n Test two\n