finish the string split function.