line.trim().isEmpty() looks more readable for me