dimension helper trim spaces