MAC address parsing functions