capitalize in ejs code example Example: how to make 1st letter capital in ejs yourstring.replace(/\w/, c => c.toUpperCase())