Enter string: Create a new string without the first and last character if 'P'
Create a new string without the first and last character of a given string if 'P'. Return the original string if the condition is not satisfied.