oops, I realized that string-index-right which is introduced in srfi-13 has the same issue too, and patch update here.