Replace vars in headers.