function toUpperCase(str) {
        return str.replace(/([a-z])/g, function (_, c) { return c.toUpperCase(); });
    }
This follows https://tc39.es/ecma402/#sec-case-sensitivity-and-case-mapping
@param str string to convert