Fix issue in Str::finish() with multicharacter cap.
added another test.