Support character set group
Fix range
Delete unnecessary variables