Fix string parsing bugs which prevented write commands from working correctly