$$ \begin{align}\begin{cases} \frac{\partial w}{\partial t} - \frac{\partial w}{\partial x} = 0 \\\ w(x,0) = e^{2x} \end{cases} \end{align} \tag{1}$$
We parameterize the curve by $r$ such that $\gamma = \\{ (r,0)\\}$ the characteristics are given by
$$ \frac{dt}{ds}(r,s) = 1 \\\ \frac{dx}{ds}(r,s) = -1 \\\ \frac{dz}{ds}(r,s) = 0 \tag{2}$$
with the initial condition given as
$$ t(r,0) = 0 \\\ x(r,0) = 0 \\\ z(r,0) = e^{2r} \tag{3}$$
when we solve the system
$$ t(r,s) = s+c_{1}(r) \\\ x(r,s) = c_{2}(r)-s \\\ z(r,s) = c_{3}(r) \tag{4}$$ imposing the initial condition $$ t(r,s) = s \\\ x(r,s) = -s\\\ z(r,s) = e^{2r} \tag{5}$$
now
$$ r(x,t) =x \\\ s(x,t) = t \tag{6} $$
$$ z(r(x,t),s(x,t)) = \phi(x) = e^{2x} \tag{7} $$
note that the solution for the characteristic is given by
$$ w(x,t) = e^{2(x-t)} \tag{8} $$