line.length() is not needed here.