Using a callback function for the prefix instead of a string