Fix filetype detection, removed trailing space