Below, names is a string composed of 1x7*N string of chars containing names and each of the names are separated by a space. I am trying to capitalize first letter of each name.