Had to redo the char to int comparison