Javascript String capitalize(n)
String.prototype.capitalize = function(n) { return this.charAt(n).toUpperCase() + this.slice(n + 1); } String.prototype.format = function(n) { return this.charAt(n).toUpperCase() + this.slice(n + 1); }