Without this patch, only cases when a token length increased were supported. If a token length decreased, we returned a larger string than expected (e.g. in the added tests, "xretur " would be returned instead of "xretur")
Without this patch, only cases when a token length increased were supported. If a token length decreased, we returned a larger string than expected (e.g. in the added tests, "xretur " would be returned instead of "xretur")