Limited number of characters in file path

Do you know any way (I saw a similar topic but have not found the correct answer) to get i.e. last six or seven charakteres from: \$PRPSHEET:"SW-Folder Name(Folder Name)"?

SolidworksDrawings And Detailing