There must be a key string you know where to end. In your example, it should be "<00>". Then you can find out the position of "<00>" and get the sub-string before that position. Is it what you want?

Sonny