Allow text as well as numbers on badges.

Convert to string and use .length rather than comparing numbers.