functions for getting word lengths and words from text in text_manip.py