fixed bug when a line containing spaces or tabs only exist