fix bugs of content_file_str_replace