Remove trailing spaces from message