in the previous prog it was checking E which the space
that is why it was giving you as not a pallandrom

u will have to eliminate the space in this case

s.s.harish