Please see below code to understand my problem:
str_line = data[\'line\'] # data[\'line\'] holds "I was born in {year}" str_year = \'1987\'