Replace text inside file passing vars