Wrapping the output of element::render in [string trim] so that it doesn't pre- or append spaces before the output, to avoid borking html layouts that depend on having no spaces in the form, e.g. so that input elements don't get wrapped inside a td tag.