Allow top-level string literals in Core (#8472)