I'm not sure what you are asking. If you know where you want the input String split into substrings,
doesn't that answer your question?

Could you post a shorter, simpler example? A String the...