Refine file_name code to match project style