string detection