allow nil units by making empty string