SubString write updates (fixes #6949)
Merge pull request #6958 from JuliaLang/kms/substring_write_fixes

SubString write updates (fixes #6949)