Implement function to handle between...and..., fix some bugs in get_word function