*The replace() function is pretty cool, but for this case all we need is 
indexing and concatenation:*


*julia> **s = "I am a scientist."*

*"I am a scientist."*

*julia> **s = s[1:7] * "scholar" * s[end:end]*

*"I am a scholar."*


Reply via email to