String analysis for interaction detection