Added the capitalization function for question 4