Trim sd filenames