If characters at both positions are not equal and != ' * ' then the string cannot be made palindrome
elif ( str1 [ i ] != str1 [ j ] ) : NEW_LINE INDENT str1 = ' ' . join ( str1 ) NEW_LINE return " - 1" NEW_LINE DEDENT i += 1 NEW_LINE j -= 1 NEW_LINE