better trim messages