<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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)