fixed find-and-replace code to work for non-CSV