import struct


def _read_next_string(data):
    """Retrieves the next RFC 4251 string value from the data."""
    str_len, = struct.unpack('>I', data[:4])
    return data[4:4 + str_len], data[4 + str_len:]