Added function titleCase

Addition of function titleCase.