Glitch introduced in fix

I introduced a glitch in get_name which causes the objects to get
assigned names like name="xyz" instead of xyz. This should be rewritten
anyway to allow names with no digits since that is a valid option.