for(int i=0; num_to_parse; i++) wut Why is `num_to_parse` your condition? Then you have `if (i == num_to_parse)` in there, too? That's odd. I'd rewrite this as: for(int i=0; i <= num_to_parse; i++) { int point_end = num_to_parse - i - 1; if(inputString[i] == inputString[point_end]) { continue; } else { return false; } } return true; Oh, and when I wrote that, I realized that your indentation is... odd, to say the least. Please don't use things like `}}` in code, ever, for any reason, and indent things consistently.