Checking position of text elements