if(97<chsub<<122)

Any reason you are bitshifting the char? I think you want chsub to be between two values

if(97<chsub && chsub < 122)