How can I format a string from an input value '1' to '01' then typecasting it to string?

Thanks!