widont

Avoids typographical widows in strings by replacing the last space with  

Example

<?php echo widont($page->title()) ?>