Can someone please simplify the following 2 lines of code.

UKHeliBob:
The rule should be "get it working then improve it"

This is a great rule that fully supports the famous SSS Strategy Rule. Always start with small thing (the basic = simple and elementary); make it work; add new thing with it; make it work and so on..

It has been highly pleasing to see the simplification of: if (inString [inCount] == EndMarker) break; into --

if (inString [inCount] == EndMarker) 
{
   break; 
}

Thanks+ @UKHeliBob!