trimmed trailing whitespace on messages