pgn to find type of given char