increased max range length to 100000 and fixed scan query parsing to deal with leading zeros