This is a crude way to do this, but it works and it is all the time I have right now.
The number 11 above represents the part of the string you want to use. If you are not using 3 numbers per octet this number will need to change accordingly.
If this is not good enough for you I will cook something else up. I just do not have the time right now.