In this program i have traversed the substring and replaced the character in the string by replace method the char is not accepted in replace method so i have converted char into string and removed ...