Parse the next parameter from a path string
The path string
The index of the character following the parameter.
The value of the parameter.