I have a CSV file with some fields such as first_name, last_name, etc and a string as follows.
Hi {first_name} {last_name}, ...
Note that the keys can change but they will always be a subset of the fields in the CSV.
How can I use string formatting to replace the value in the string from CSV?