Such a simple Little change of putting 0: in front to specify the 00's fixed it.
The output is still not right, but this is a different matter for the code I will explore myself and post a separate question if there comes a different issue 🙂
Thanks for solving the issue of the array being out of range.