Triplets on a string