if (this.state.name[0] >= 'A' && this.state.name[0] <= 'Z') this.setState({ name: "First letter is uppercase" }) else this.setState({ name: "First letter is NOT uppercase" }) }