Key not present in dictionary in xaml

This xaml file was working earlier today however not it does not work - the error message is that the given key is not present in the dictionary/ however when I check the dictionary variable the key is present?

Dictionary keys are case sensitive. Kindly check both your workflow and config values are same. Thanks.

You can try trimming the space and using tolower while comparing