filenames are now trimmed when saving