Convert back to a String using the String constructor that takes a Unicode character array.
#include "stdafx.h" using namespace System; int main() { String^ str = "A quick sly fox jumped over the lazy brown dog."; array<Char>^ character_array = str->ToCharArray(); Console::WriteLine( str); for (int i = 0; i < character_array->Length; i++) { if ( character_array[i] >= L'a' && character_array[i] <= 'z') { character_array[i] -= (L'a' - L'A'); } } str = gcnew String(character_array); Console::WriteLine( str); }