I have a string " abcde0000a" . (auto increment code)

I have a string " abcde0000a" . Now if i keep on incrementing “0000” and once it reaches to max value i.e 9999 , then last letter has to be incremented alphabetically and the numbers should reset to “0000”. So can anyone provide gatling /scala code for the same. Thanks in advance.