nth roots in the string

Finds nth roots in the string and then converts them into easy to manipulate exponent form0