If the string is always the same length there is a way to code it yes.

If the string is different lengths each time I'm not experienced enough to help you.