12345
string newString = ""; for (int i = 0; i < userString.length(); ++i) { newString += tolower(userString[i]); }