Modify files for palindrome and replace_regex.