Replace AttrName.toString() calls with getName().