I would like to create a string which has a placeholder held within curly brackets for custom text. For example

```
string mySpecialMessage = "Hi there developer {name}. 
I see that you have {reputation} reputation points! 
Thanks for looking at my stack overflow. You're a real {compliment}";

```

I would then feed it into a method

```
Display(mySpecialMessage, MessageType.HighPriority, 2);

```

And the method looks like this

```
public void Display (string messageContents, messageType messageType, float displayDuration)
{
// TODO - Format messageContents with replaced placeholders
// Create a new instance of message

Message newMessage = new Message(messageContents, messageType, displayDuration);

// Adds message to queue

messageQueue.Enqueue(newMessage);
if (!processing)
    {
        StartCoroutine(ProcessMessageQueue());
    }
}
}

```

My question is: How do I extract all these curly brackets and format it back into the string?