Writing capitalize() interface