You're right, it will incorrectly modify index and fail to parse the rest of the token.  Since I guess I intend %04% and %4% to behave the same way I'll correct this tonight.