should check if line empty first.