Your approach seems to be based on the text in the browser, which is probably easier but too limited approach. I'd recommend trying another approach - validation based on elements, which Test Studio is pretty powerful with. One can give the Test Studio recorder a try and record verifications based on the highlighted element or if you prefer coded solution find your elements dynamically. For reference please take a look at the links below and let us know if you need further assistance.
Getting started with test recording
Test Studio Verifications
Recording Quick Verifications