make sure atom_group_name is well-trimmed and happy