fixed issue with title using capwords() function