public function subst($query)
    {
        foreach ($this->values as $key => $value)
        {
            $query = preg_replace("/$key(\s|,|$)/", "$value$1", $query);
        }

        return $query;
    }