trim dimension names before output