def decodeString1(self, data, factor=1):
        try:
            length, = struct.unpack('!B', data[:1])
        except struct.error:
            raise BadPacketError("Can't decode 1string")

        length *= factor

        if len(data) < 1+length:
            raise BadPacketError("Bad 1string length")

        return data[1:1+length], data[1+length:]