private static String replaceNewlines ( String in , String replaceWith ) { return in . replaceAll ( "\r" , replaceWith ) . replaceAll ( "\n" , replaceWith ) ; }
Replace newlines with the given string .