finished the conversion to/from binary, with and without spaces