Test case 0 and test case 2 is fail

#include
using namespace std;
int main() {

string str;
cin>>str;
int i=0,j=str.length()-1;

while(i<=j){
	if(str[i]==str[j]){
		// cout<<""
		i++;j--;
	}
	else{
		cout<<"false";
	}

}
cout<<"true";

return 0;

}

hi @yashtripathi6969_0cd127807d833066 updated