If you use this for changing parameters via command strings, I recommend merging the parameter name and value parsing.

Here, perhaps an example program will illustrate the idea better:

...