Add helper functions for manipulating device names