Cleaning the mac address before registering it