You can use the Java action “StringLeftPad” from the Community Commons module; set “value” to your string, “amount” to 3 and fillCharacter to “0”.