Fixed the GetFile function.
The function would originally return a filename with extra whitespace at
    the front, which resulted in a filname that didn't exist.
GetFile removes all extra whitespace from the obatained filename.