Update URL substring checking lengths