import std.string : capitalize; auto t1 = typeof(this)("test"); assert(capitalize(t1) == "Test");
See Implementation