Add Trailing String java solution