Multiple Custom Metadata in Compile Header

I am inserting custom metadata in the header of my compile, but if I add more than one custom metadata, it starts acting weird. Sometimes they show up further down in the text.
This is my custom metadata:

changesetting:Text
conditions:Text
end:Checkbox

The first two are text and the last is a checkbox

This is my Title Prefix:

{
character:“<$label>”,
id:“<$title_no_spaces>”,
setting:“<$custom:changesetting>”,
condition:“<$custom:conditions>”,
isEnd:“<$custom:end>”,
text:"

If I only do one custom metadata, it works as expected, but once I add another, it goes all over. here’s an example:

character:“No Label”,
id:“Whereareyoutakingme?”,
setting:“learnedMesmer”,
condition:“<$custom:cNo”,
text:“Where are you taking me?”,

In this case the checkbox was not checked and the condition was blank text.
I’ve tried removing spaces and line breaks and renaming the metadata but I can’t find a rhyme or reason why this is happening.