refactored name format converter to oneliner