Buggy little get_next_line and working get_next_word