[Tex/LaTex] How to prevent the orphan word of paragraphs

spacing

Currently, I have a paragraph in my article shown as following picture: the orphan word MAS. at the end of the paragraph takes a single line.

But somehow, there was one typeset which successfully removed the orphan word, and made the paragraph more compact, as the following picture shows: the word Thus, was successfully aligned itself with location. sentence, which results in a compact paragraph.

Unfortunately, I don't know how to control latex to reproduce this again. Could any one show me some useful skills to remove the orphan words like this?

If you put \looseness=-1 immediately before the paragraph TeX will try to make it one line shorter