public static String normalizeMac(String mac) throws IllegalArgumentException {
  mac=mac.replaceAll("[:-]","");
  mac=mac.toLowerCase();
  return mac;
}

public static String normalizeMac ( String mac ) throws IllegalArgumentException { mac = mac . replaceAll ( "[:-]" , "" ) ; mac = mac . toLowerCase ( ) ; return mac ; }
translate a mac to its canonical format .
