So, there is an array where Student Name is stored as:
getline (cin, studentName[i]);
Now, In student name format is mike tyson
mike tyson