The question was about using SPACES instead of
IF some-field = ‘ ‘
I do not believe there is an issue when placing spaces between quotes. The question was about using (what in COBOL are known as Figurative Constants) SPACES.
I see nothing wrong with your code, it just does not address the question the TS posted.
And, according to the documentation, SPACES can be used to MOVE or compare (IF).