Adding orphaned word prevention in headings