Only require a string when providing a unit.