Replace matched strings in files for defined values