Splitting wordWrap into its own function, and also splitting words at hyphens, not just spaces.