-------------------------------------------- Current value of string: "" Please select one of the following options: 1 Set string 2 Test string for palindrome 3 Find substring in string 4 Remove substring from string 5 Quit Option: 1 Enter string: deed -------------------------------------------- Current value of string: "deed" Please select one of the following options: 1 Set string 2 Test string for palindrome 3 Find substring in string 4 Remove substring from string 5 Quit Option: 2 "deed" is a palindrome -------------------------------------------- Current value of string: "deed" Please select one of the following options: 1 Set string 2 Test string for palindrome 3 Find substring in string 4 Remove substring from string 5 Quit Option: 3 Enter string: de substring "de" is in "deed" -------------------------------------------- Current value of string: "deed" Please select one of the following options: 1 Set string 2 Test string for palindrome 3 Find substring in string 4 Remove substring from string 5 Quit Option: 4 Enter string: de substring "de" removed; new string = "ed" -------------------------------------------- Current value of string: "ed" Please select one of the following options: 1 Set string 2 Test string for palindrome 3 Find substring in string 4 Remove substring from string 5 Quit Option: 2 "ed" is not a palindrome -------------------------------------------- Current value of string: "ed" Please select one of the following options: 1 Set string 2 Test string for palindrome 3 Find substring in string 4 Remove substring from string 5 Quit Option: 3 Enter string: de substring "de" is not in "ed" -------------------------------------------- Current value of string: "ed" Please select one of the following options: 1 Set string 2 Test string for palindrome 3 Find substring in string 4 Remove substring from string 5 Quit Option: 1 Enter string: Madam, I'm Adam -------------------------------------------- Current value of string: "Madam, I'm Adam" Please select one of the following options: 1 Set string 2 Test string for palindrome 3 Find substring in string 4 Remove substring from string 5 Quit Option: 2 "Madam, I'm Adam" is a palindrome -------------------------------------------- Current value of string: "Madam, I'm Adam" Please select one of the following options: 1 Set string 2 Test string for palindrome 3 Find substring in string 4 Remove substring from string 5 Quit Option: 3 Enter string: ma substring "ma" is not in "Madam, I'm Adam" -------------------------------------------- Current value of string: "Madam, I'm Adam" Please select one of the following options: 1 Set string 2 Test string for palindrome 3 Find substring in string 4 Remove substring from string 5 Quit Option: 3 Enter string: dam substring "dam" is in "Madam, I'm Adam" -------------------------------------------- Current value of string: "Madam, I'm Adam" Please select one of the following options: 1 Set string 2 Test string for palindrome 3 Find substring in string 4 Remove substring from string 5 Quit Option: 4 Enter string: dam substring "dam" removed; new string = "Ma, I'm Adam" -------------------------------------------- Current value of string: "Ma, I'm Adam" Please select one of the following options: 1 Set string 2 Test string for palindrome 3 Find substring in string 4 Remove substring from string 5 Quit Option: 2 "Ma, I'm Adam" is not a palindrome -------------------------------------------- Current value of string: "Ma, I'm Adam" Please select one of the following options: 1 Set string 2 Test string for palindrome 3 Find substring in string 4 Remove substring from string 5 Quit Option: 1 Enter string: -------------------------------------------- Current value of string: "" Please select one of the following options: 1 Set string 2 Test string for palindrome 3 Find substring in string 4 Remove substring from string 5 Quit Option: 2 "" is a palindrome -------------------------------------------- Current value of string: "" Please select one of the following options: 1 Set string 2 Test string for palindrome 3 Find substring in string 4 Remove substring from string 5 Quit Option: 3 Enter string: substring "" is in "" -------------------------------------------- Current value of string: "" Please select one of the following options: 1 Set string 2 Test string for palindrome 3 Find substring in string 4 Remove substring from string 5 Quit Option: 3 Enter string: b substring "b" is not in "" -------------------------------------------- Current value of string: "" Please select one of the following options: 1 Set string 2 Test string for palindrome 3 Find substring in string 4 Remove substring from string 5 Quit Option: 4 Enter string: substring "" removed; new string = "" -------------------------------------------- Current value of string: "" Please select one of the following options: 1 Set string 2 Test string for palindrome 3 Find substring in string 4 Remove substring from string 5 Quit Option: 4 Enter string: b substring "b" not found in "" -------------------------------------------- Current value of string: "" Please select one of the following options: 1 Set string 2 Test string for palindrome 3 Find substring in string 4 Remove substring from string 5 Quit Option: 5