Trailing String solution