[PATCH v12 2/3] also set len if we have an existing string