rename s to line_len in do_check()