Trim incoming messages