change string to FileType