added problem to replace strings in a sentence with other strings