 {
   sResp = "<html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p></body></html>";
 
-  sHead  = "HTTP/1.1 404 Not found\r\n";
-  sHead += "Content-Length: ";
-  sHead += sResp.length();
-  sHead += "\r\n";
-  sHead += "Content-Type: text/html\r\n";
-  sHead += "Connection: close\r\n";
-  sHead += "\r\n";
+  sHead = "HTTP/1.1 404 Not found\r\n"
+          "Content-Length: " + String(sResp.length()) + "\r\n"
+          "Content-Type: text/html\r\n"
+          "Connection: close\r\n"
+          "\r\n";
 }
 
 void generateOKHTML(String& sResp, String& sHead)
 {
-  sResp += "<FONT SIZE=-3>";
-  sResp += "Andreas Niggemann " + String(versionMonth) + "/" + String(versionYear) + "<BR>";
-  sResp += "</body></html>";
-
-  sHead  = "HTTP/1.1 200 OK\r\n";
-  sHead += "Content-Length: ";
-  sHead += sResp.length();
-  sHead += "\r\n";
-  sHead += "Content-Type: text/html\r\n";
-  sHead += "Connection: close\r\n";
-  sHead += "\r\n";
+  sResp += "<FONT SIZE=-3>Andreas Niggemann " + String(versionMonth) + "/" + String(versionYear) + "<BR></body></html>";
+
+  sHead = "HTTP/1.1 200 OK\r\n"
+          "Content-Length: " + String(sResp.length()) + "\r\n"
+          "Content-Type: text/html\r\n"
+          "Connection: close\r\n"
+          "\r\n";
 }
 
 String getRequest(WiFiClient webclient)

unsigned long secCounter = 0; // count the seconds since start of timelapse
unsigned long timeSlotCounter = 0; // count the timeslot since start of timelapse

enum triggerModes { ON, OFF };
triggerModes currentTriggerMode = OFF;
enum execModes { ONESHOT, TIMELAPSE, STOP, RESET, SHOTINFO, NONE };
execModes currentExecMode = NONE;

  }

  bool pathOK = checkPathAndGetParameters(sRequest, sParam); // get parameters from request, check path
  if (pathOK) // generate the html page
  {
    extractParams(sParam);
