Fix SkipSpaces behavior at the end of file