Changing Case of char Array

  for (int i = 0; i < 100; i++ )  // 100 set arbitrarily and excessively large

Replace the 100 with strlen(myString) and delete the comment.

And you can remove the if test.