clean values going into Param#value
very hacky solving is extremely fragile