qwerty's suggestion does work, but commands (and some identifiers) strip spaces anyway (try /echo or /say with multiple spaces, for example). The situation better explained
here and a list of workarounds can be found on the same site,
here.
Writing consecutive spaces requires use of /bwrite or /fwrite (in combination with /bset).