trim comments and update echoes