`line[0]=='#'` is also possible. just suggestion