ExportString
ExportString[expr,"format"] generates a string corresponding to expr exported in the specified format.
ExportString[rules,{"format","Rules"}] gives explicit rules for different elements of the data to be exported.
ExportString[exprs,elems] generates a string by treating exprs as elements specified by elems.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.