[Bug 301038] New: String::endsWidth() off-by-one error