Add validRange: category method on NSString