character comparision almost working