String Comparison - Not Equal To problem in While Loop

In future, do I need to break the code down into more than one post to get it onto the forum?

No. Just below the text window, there is a link called Additional Options... Select that, and one of the things you can do is attach one or more files that are larger than the 9500 character limit.

Even better, though, is to create a smaller sketch that illustrates the problem.