I improved the existing code so that it can now handle sentences with punctuation and spaces. This means that it now works for an edge case like "Sit on a potato pan, Otis"