Np.

Substring is useful when you want to store a string of characters from a larger string. You, however, only need a single character which you can access using [] or .at(). You can store the individual characters if you need to but since your only ouputting, I don't see why you would have too.