Range check by string