How To Split A Given String Into Substrings While

How To Split A Given String Into Substrings While