How can we separate name and surname combined together like PeterGomes, HarrisDawn and having multiple records. Thanks in advance.
The most ideal tool for the activity here is recursion, not customary articulations. The essential thought is to begin from the earliest starting point of the string searching for a word, at that point take the rest of the string and search for another word, etc until the finish of the string is come to. A recursive arrangement is normal since backtracking needs to happen when a given rest of the string can't be broken into an arrangement of words.