fix the write command where space is ignored (the parse split the buffer by space, that is why it is ignored