$new_str = substr($found_file, 0, index($found_file,'.new')) . '.new';