On the composite of three irreducible morphisms over string algebras