The highlighting of the next to last entry highlighted text correctly until I added the final entry which erroneously overlaid it. the context menu doesn't explain the issue as it shows appropriate coding.
Thanks MJ, I will take a look at this today.