public static String normalizeBreaks(String text){
  text=text.replaceAll("<br>","");
  return text;
}

public static String normalizeBreaks ( String text ) { text = text . replaceAll ( "<br>" , "" ) ; return text ; }
translates multiple whitespace into single space character . if there is at least one new line character chunk is replaced by single lf ( unix new line ) character .
