This trailing space seems error-prone.  Best is to treat the class attribute as a set of space-separated words.  That's awkward to do in XPath, but I think this would be a better fix: `//div[contains(@class, "text-input-dynamath_data")]`