what is the best way to translate "1" and "0" to "1" or "0" respectively? or "1", "2", "3" to "1-3" respectively.