Added convertToSubcript and convertToSuperscript methods