SubString write updates (fixes #6949)