value = value + ""; arg = parseInt(arg); while(value.length < arg){ value = value + " "; } return value;