second commit for stringdelimiter, using index of and a do/while loop