added titalcase function