formatting device names