  // Remove CRs
        while ( str.indexOf ( "\r" ) >= 0 )
        {
          str = str.replace ( /\r/g, "\n" ) ;     
        }
        //Remove double NLs
        while ( str.indexOf ( "\n\n" ) >= 0 )
        {
          str = str.replace ( /\n\n/g, "\n" ) ;
        }
        // Replace "#" with "($)"", as Asyncwebserver does not like "#"
        while ( str.indexOf ( "#" ) >= 0 )
        {
          str = str.replace ( "#", "($)" ) ;
        }
        // Replace newline with delimeter
 