Better string detection