im not sure what [-s]%x[1] is
but var must be:
/set %var yourtext.or.$string

bodo