So I have been working on a naming convention which add 0\'s before a string. I\'m trying to do this the short handed way before breaking everything into if statements. Here
Assuming that n is a String that represents a number, or more generally that n doesn't have any space characters:
n
String
String.format("%5s",n).replace(" ","0");