updated the TextCase
updated the TextDocument