Stripping whitespace off filename to fix problem with filename with spaces.