change string check to int and added strick equals

Changed string check to int and added strict equals.