$field->widont()

Avoids typographical widows in strings by replacing the last space with  

  • return (string)

Example

<?= $page->title()->widont() ?>