added option to capitalize each word