Trim whitespace in filenames