what is the for function for in this program

 for (int pos = 0; pos < message.length(); pos++)   //What does this part do?

Selects each character in turn from the String

     Serial.print(message.charAt(pos));

then prints it

However

      message.charAt(pos) kinukuha nya yung sa string

is nonsense and won't compile