Replacing vars in attributes and text. However, the dictionary is still missing values for some vars.