remove trailing spaces from labels since they shouldn't be there according to innodata spec.