trim the comment before submiting it