Remove duplicate chars - HashMap and StringBuilder