Normally, I would change its origin to the right-hand side (the text's x + width) and then positioning the right-hand side where it needs to be. Note that the origin needs to be updated everytime the string changes.
If your font is monospaced, you can simply just pad the beginning of the string with spaces.