strip leading and trailing white space from labelme filenames