void setup() {
  Serial.begin(115200);

  // Length of a string
  String str = "http://www.robotronix.co.il";
  int length = str.length();
  Serial.print("Length of the string: ");
  Serial.println(length);

  // Substring extraction
  String domain = str.substring(7); // Extract the domain name
  Serial.print("Domain: ");
  Serial.println(domain);

  // String concatenation using the concat() method
  String fullURL = "http://";
  fullURL.concat("www.robotronix.co.il");
  Serial.print("Full URL: ");
  Serial.println(fullURL);

  // String modification with replace()
  String modifiedURL = fullURL;
  modifiedURL.replace("robotronix", "example");
  Serial.print("Modified URL: ");
  Serial.println(modifiedURL);

  // String comparison with equals()
  String checkURL = "http://www.robotronix.co.il";
  if (str.equals(checkURL)) {
    Serial.println("Strings are equal");
  } else {
    Serial.println("Strings are not equal");
  }
}

void loop() {
  // Empty loop
}