You set the coordinates of the string at the time you paint it. If you want to use these coordinates later assign them to some variables.

The example you give suggests that the characters might...