Use char array instead of int for speed up.