code: private static String cutEOL( String s ) {
          if(s==null)
              return "(Unknown error)";
          if(s.endsWith("\r\n"))
              return s.substring(0,s.length()-2);
          else
              return s;
      }
docs: Cuts off the end of line characters.
  @param s the original String
  @return