added functionality for capitalized first words of a sentence