def _replace_scalar(self, scalar):
        """ Replace scalar name with scalar value """
        if not is_arg_scalar(scalar):
            return scalar
        name = scalar[1:]
        return self.get_scalar_value(name)