Checks the length of a line.