working with char codes should be faster (no need to create String, Int comparison)