With text balance you can make sure words don't stay alone.
To see this in effect, resize window such that the first heading wraps to one word on the second line.
<h1>Not balanced: This is a heading with text that is regularly balanced</h1>
<h1 class="balanced">Balanced: This is a heading with text that is regularly balanced</h1>
<style>
h1.balanced {
text-wrap: balance;
}