public function trim(EshopFormFields $fields)
    {
        $updatableFields = $fields->getUpdatableFields();

        array_walk_recursive($updatableFields, function (&$value) {
            $value = $this->isTrimmableField($value) ? $this->trimField($value) : $value;
        });

        return $updatableFields;
    }