replace all occurrence of file names instead of only the first one.