src/index.js
function capitalize(str) {
    let result = str.trim();
    return result.substring(0, 1).toUpperCase() + result.substring(1);
  }
function capitalize(str) {
    let result = str.trim();
    return result.substring(0, 1).toUpperCase() + result.substring(1);
  }
function capitalize ( str ) { let result = str . trim ( ) ; return result . substring ( 0 , 1 ) . toUpperCase ( ) + result . substring ( 1 ) ; }
Capitalize the first letter in a string.
Capitalize the first letter in a string .