#709

To Lower Case

easy · verified · 84.7% accepted · 2,035 likes · top 96%

string

⊣ practice⊣ open on leetcode ↗

Description

Given a string s, return the string after replacing every uppercase letter with the same lowercase letter.

Example 1:

Input: s = "Hello"
Output: "hello"

Example 2:

Input: s = "here"
Output: "here"

Example 3:

Input: s = "LOVELY"
Output: "lovely"

Solution