Accessing an index of a string nbt

How can I access a specific index of a string, for example I want to get the second character of a string and store it into another string
Continue to help post