Added loop to find first occurence of actual string to solve abc=1&bc=2 ...

Used a simple loop to find the first actual occurrence of a string. This prevents the function from resolving a substring as a full query parameter. I make sure that the parameter found is either the first char in the original queryString or that it is preceded by an '&' character. This should be sufficient.