Minor Corrections

changed main method by casting charAt values as an int