Joined: 23 Nov 2006 Posts: 19270 Location: Inside the Matrix
You can do what you want using reference modification.
To do what you want, you will have to determine the length of the argument and then set up a loop to compare the argument against the string starting at the first position and advancing thru the string modifying the starting position of the compare until you have parsed the string.
You will also need to determine whether upper/lower case is to be considered. I'd suggest converting everything to upper case before comparing if case is not to be considered.