Fixed infinite loop when line is 1 word long.