Update line with variables replaced