I have following problem:
Input String 1 : "A[SPACE]B[SPACE]C[SPACE][SPACE]D[SPACE][SPACE]E"
Input String 2 : "1-" OR "1,2" OR "3-"
If Input String 2 is 1- then I am supposed to return string from first word
If the input string is 3- then i am supposed to return string from 3rd word,
If the input string is 1,2 then I am supposed to return word 1 and 2
One cannot assume that more than one space is delimiter
For example
3- should return C[SPACE][SPACE]D[SPACE][SPACE]E
PLEASE CONSIDER [SPACE] as actual space character