# Hello**Your Name**<text value="" ref="name" onChange="capitalize()" />function capitalize() { const name = getState('name').split(/\s/) const lower = name.map(n => n.toLowerCase()) setState('name', lower.map(n => n.charAt(0).toUpperCase() + n.slice(1)).join(' '))}Hello {{ name }} echo Hello {{ name }}