Better shm-in-string detection