partially implemented character range (beware - this version is not valid)