add some checks and an example to paramValuesToString