Put nospace and filenames opts in function