class StringHelper {

    public static String removeEmptyLines(String string) {
        if (string == null) {
            return null;
        }
        return string.replaceAll("(?m)^\\s*$\\n", "");
    }

    private  StringHelper();

}