strip all whitespace chars from the end of the file name