fix trailing spaces in log file names