trim the status message