You want ``read_string()`` for this.  You could also pair ``write_longstring()`` and ``read_longstring()``.