std::stringstream stream;
stream.width( 3 );
stream << std::setfill( '0' );

//
stream << i;
const std::string num_part_2 = stream.str();
stream.str( "" );