switch stringDelimiter from capturing a string of character to identifying the position of the delimiter and then slicing the string accordingly