removes trailing white space from values in dict, the extra white space on file names was messing with things