Add method getFileExtension
Refactoring method modifyType, rename to modifyExtension