Apologies if the title is incorrect, but I'm not entirely sure how to describe the issue I am having. Please see the image below for clarification. The text should be justified, but in random spots of the document, the text moves across the justification line.
This happens about 3 times in my 20 page document. Two of the occurrences are inline LaTeX as in the attached image, but the other occurrence is a text-only sentence in a text-only paragraph.
An excerpt of text (it might not seem too big a deal now, but if you've got a whole page of text properly justified, that part really sticks out):