Add spaces between numbers and units in legends