Make the 'getAsString' function a method of the Attributes class.