trim branch output