updated convert_to_natural_naming to take either str or list as input