How can I set a variable number of digits without hyphens?