Consolidated getUnitString for DRY and added calStackZ v.1.1.21