ignore newlines at the end of messages