Hi, I'm currently replacing \toks@{stuff including "#1"} \edef\myvar{\the\toks@} by \toks_set:No \l_tmpa_toks {stuff including "#1"} \tlp_set:Nx \l_my_tlp {\toks_use:N\l_tmpa_toks} Is there a pre-coded function for this (I may have misunderstood somewhere). -- Joseph Wright