A Stringy Test of the Weak Gravity Conjecture