You can use tighter tracking, letter spacing, or character spacing to change line endings. You might want to apply these changes globally throughout your document or only in certain areas. Sometimes tightening the spacing on just one line or even one word can be enough to force a change.
Tightening text (putting less space between words and/or between characters) has an overall effect of making more room in a document. It can be used (with care) to not only eliminate dangling words but to create less ragged line endings and save space by fitting more words onto a single page.
Be aware that even when tightening text in only one paragraph, subsequent paragraphs may be affected simply by moving them higher on the page. Always check the entire document even when applying changes to just a portion.