Swap arguments in subst