Add a stringification method.