Switch to calling get_word() instead of directly using lineparts[]