class Const {

  public static String removeCRLF( String in ) {
    if ( ( in != null ) && ( in.length() > 0 ) ) {
      int inLen = in.length(), posn = 0;
      char[] tmp = new char[ inLen ];
      char ch;
      for ( int i = 0; i < inLen; i++ ) {
        ch = in.charAt( i );
        if ( ( ch != '\n' && ch != '\r' ) ) {
          tmp[posn] = ch;
          posn++;
        }
      }
      return new String( tmp, 0, posn );
    } else {
      return "";
    }
  }

}