renamed upperCaseWords to capitalizeWords