trim message while save