PHP's ucfirst function
function capitaliseFirstLetter(string) { return string.charAt(0).toUpperCase() + string.slice(1); }