replace content between tags in file