Get text from the header and validate the text as expected

Hi All,
How can I get the text from the header and validate that the text available is valid

![image|690x29](upload://oFyN

H9pmC2Pg7K8k3RVFr62yTcm.png)

Header text

I get the below text as
BEST,NR
DATUM
TOTAL
ZAHLUG

But how can i validate the text if its expected or not…as its a list

kindly reply

More here: