Optimized validation, now each iteration starts with next char after bad one.
Unit-test. String modified and now contains invalid sequence in the middle of the string.