Change format_name() function