character ranges improved