Imlementing ucfirst feature in template