<xf:set var="$phrase" value="preview" />
<xf:set var="$strlen" value="{{strlen($phrase) - 1}}" />
<xf:foreach loop="{{ range(0, {$strlen}) }}" value="$number" i="$i">
<xf:set var="$realI" value="{{$i - 1}}" />
<xf:set var="{$phraseMatch.{$number}}" value="{$phrase.{$realI}}" />
</xf:foreach>