Thank you for choosing Microsoft Community and thanks for providing us an opportunity to assist you.
As per the description provided, it looks like you are trying to hide the file extensions of the Office files.
To resolve the issue, let us enable the option
Hide extensions for known file types
in the Folder and search options and check. For more information on the same refer to the following artiocle and check if it helps: