Is it possible to format the input from the serial monitor?

That seems to work! Thank you very much. I need to have a good look at it tomorrow as it is past midnight here and I need to go to bed. I will mark it as the solution tomorrow.

BTW, why is it naughty?