Changed string to filetype