There is no space between the invalid command and the remainder of the string on this line: https://github.com/open-ephys-plugins/ephys-socket/blob/69c5e40b6d4537f0d6f38f21201f7debca61a5ea/Source/EphysSocket.cpp#L370