How to change the attribute value as a last of item code and abbreviation as a last of item name?

How to change the attribute value as a last of item code and abbreviation as a last of item name?

Attribute