Assigning residues for polymer chain

Dear All,

I've created a polymer chain with side groups. But for the later trajectory analysis, I'd like to assign different names to each side groups of this polymer.  Is there any way to achieve this?  I wasn't able to find any form of residue name definitions during the creation process, which is the concept used in xleap or pdb/mol2 file formats.  How can I define residue names or change them?   Can I just select atoms from the 3d structure and change names  - In fact, I tried this but didn't work. It changed some sort of the name. but does not produce right residue name when experted as pdb or mol2 file.

Thank you for your help.

C. Do