Rewrote function to check if length of text was < 140 to be more succinct.