Fix string existence test for 7