private static String fromHtmlEntity(String str){
  Character ch=map.get(str);
  return (ch != null) ? ch.toString() : str;
}

private static String fromHtmlEntity ( String str ) { Character ch = map . get ( str ) ; return ( ch != null ) ? ch . toString ( ) : str ; }
find the html entity and convert it back to a regular character if the entity exists , otherwise return the same string .
