stripping newlines from message ids