I am trying to make a function that will split a sentence every 40 characters but will only split it on a space and will not split the string in the middle of a word. Currently,