(STRXFRM): Do the trailing \1 removal optimization even if needed > n.