Lesson 4: For and While Loops: modified space finder to accommodate case where no space is found in String