Remove warnings "character class has duplicated range"
Remove warnings "assigned but unused variable"