add function to capitalize words