revert isNextString impl