Make an array variable by dividing a name by capital letters

How can I divide to have it in an array variable, a name, for example Mario Ortega Garcia, by the capital letters ?

Instead of capital letter, you can do it an alternate way by splitting using space.

arr = "Mario Ortega Garcia".Split(" "c)

You can split your string into a character array and then loop through it and for every character that is uppercase you can append it to a list or add it to a string and convert that to an array once the loop is done.