get rid of new line characters in messages