Optimized method of checkLineWithHelpWrongSequence