CodeEval: Trailing Strings (complete -- accounted for weird base case)