(Choose 1 answer)
Assume you have a variable called word_string that contains the string "The quick red fox jumped over the lazy dog." Which function can you use to replace the word "dog" with the word "cat" in the word string variable?
A. substr()
B. nchar()
C. strsplit()
D. chartr()