Third times the charm…
<xp:this.resources>
&lt;xp:dojoModule name=&quot;dojo.string.trim&quot;&gt;&lt;/xp:dojoModule&gt;
</xp:this.resources>
to
<xp:this.resources>
&lt;xp:dojoModule name=&quot;dojo.string&quot;&gt;&lt;/xp:dojoModule&gt;
</xp:this.resources>