Assuming nextindex is required, the following result was found.
style or chain I like which appends the functions instead and is clearer for me personally to understand: // I want 010 v_NextIndex = 10; // yields 10 v_NextIndexStr = v_NextIndex.leftpad(3); // yields " 10" v_NextIndexStr =...