Another way to substitute a variable by a value, besides with the | operator or the subst command, is with something akin to functional notation. You can follow an expression or expression name with equalities of the form variable = value.
Examples.
5+3 z |
4 h k+8 h3 |