CodeEval challenge - Trailing String