Store attribute name as string instead of calling to_s several times