String  st1="Al-Huson";
String  st2="College";
int FA;
String FAB;
char F1;

void setup() {
 Serial.begin(9600);
 Serial.println("string 1 :" +st1);
 Serial.println("string 2 :" +st2);

  FA= st1.length();
  Serial.print(" the lenght  of st1: ");
  Serial.println( FA); 

 FA= st2.length();
 Serial.print(" the lenght  of st2: ");
 Serial.println(FA ); 

F1= st1.charAt(4);
Serial.print("char at position 4  of st1 is " );
Serial.println(F1);

F1= st2.charAt(5);
Serial.print("char at position 5  of st2 is ");
Serial.println(F1);

FA= st1.indexOf("H");
Serial.print("the index of H in st1 ");
Serial.println(FA);

FA= st2.indexOf("g");
Serial.print("the index of g in st2 ");
Serial.println(FA);

FA=st1.compareTo(st2);
Serial.print("st1 copares to st2 ");
Serial.println(FA);

FA=st1.endsWith("son");
Serial.print("does st1 ends with (son)? ");
Serial.println(FA);

FA=st2.endsWith("n");
Serial.print("does st2 ends with (n)? ");
Serial.println(FA);

FA=st2.equals(st1);
Serial.print("is st2 equals st1 ? ");
Serial.println(FA);

FA=st1.equalsIgnoreCase(st2);
Serial.print("is st2 equals with case being Ignored st1 ? ");
Serial.println(FA);

FAB=st1.substring(3,6);
Serial.print("the substring of st1 ");
Serial.println(FAB);

FAB=st2.substring(2,5);
Serial.print("the substring of st2 ");
Serial.println(FAB);

FA=st2.startsWith("b");
Serial.print("does st2 starts with b ? ");
Serial.println(FA);

FA=st1.startsWith("A");
Serial.print("does st1 starts with A ? ");
Serial.println(FA);

st1.toLowerCase();
Serial.print("the lower case of st1 is ");
Serial.println(st1);

st2.toUpperCase();
Serial.print("the upper case  case of st2 is ");
Serial.println(st2);

 st2.replace(st2 ,"University") ;
 Serial.print("after replacing st2 ");
Serial.println(st2);

 st1.remove(2,1);
 Serial.print("after removing (-) from st1 ");
Serial.println(st1);

}
void loop() {
  // put your main code here, to run repeatedly:

}