Lesson 4: For and While Loops: sentence splitter - checks case where multiple spaces are inserted between terms