title: RTTY translation, multiline
body: <p>I'm trying to adapt <a href="https://github.com/kg4sgp/arduino-rtty" rel="nofollow noreferrer">KG4SGP</a>'s RTTY modulator to send a textfile instead of a fixed char array. I'm getting Strings by the readLine() method, altering these Strings by replacing certain values and then copy the altered String to a charArray.</p>
  
  <p>I changed his global<code>char msg[] = "\n\nCQ CQ CQ DE KG4SGP KG4SGP KG4SGP KN\n\n";</code> to<code>char msg[70];</code> and hoped to have this running instead;</p>
  
  <pre><code>while(text.available()) {
     String lin= readLine();
             lin.toLowerCase();
                 if (lin.indexOf("&amp;")) {
                   if (lin.indexOf("&amp;de ")) {
                      lin.replace("&amp;de ", "de ");
                      result = calculateDayOfYear(dag,maand,jaar);
                      lin.replace("juldate" , String(result)); 
                      lin.replace("hour", String(uur));
                      lin.replace("min", String(mins));
                   } 
                   if (lin.indexOf("month")) {
                      lin.replace("&amp;","");
                      lin.replace("day", String(dag));
                      lin.replace("hour", String(uur));
                      rmin=random(1, mins);
                      lin.replace("rndmin", String(rmin));
                      lin.replace("month", (months[maand-1]));
                      lin.replace("year", kortjaar );
                   }
                      lin.toUpperCase();
                      lin.toCharArray(msg,lin.length()+1);
                      //Serial.println(msg);
                }
  </code></pre>
  
  <p>Well, whatever I did or tried, I'm never getting any charArray to correctly identify the current character and translate it.. :-( It seems to all come out of the timerfunction
  All suggestions welcome</p>