### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

When using the `States.StringSplit` intrinsic function for AWS Step Functions, I get the following error:

```
│ Error: creating Step Functions State Machine (repro): InvalidDefinition: Error=ValueError Args=["Expected 2 arguments for function type '<class 'localstack.services.stepfunctions.asl.component.intrinsic.function.statesfunction.string_operations.string_split.StringSplit'>', but got: '(FunctionArgumentList| {'arg_list': [], 'size': 0}'."] in definition '{
│   "Comment": "States.StringSplit error",
│   "StartAt": "WillStatesStringSplitError",
│   "States": {
│     "WillStatesStringSplitError": {
│       "Type": "Task",
│       "Resource": "arn:aws:states:::lambda:invoke",
│       "End": true,
│       "Parameters": {
│         "FunctionName": "SomeFunction",
│         "Payload": {
│           "inputArray.$": "States.StringSplit($$.Execution.Input.csv, ',')"
│         }
│       }
│     }
│   }
│ }
│ '.
│ 
│   with module.step_function.aws_sfn_state_machine.this[0],
│   on .terraform/modules/step_function/main.tf line 15, in resource "aws_sfn_state_machine" "this":
│   15: resource "aws_sfn_state_machine" "this" {
```

See repro for state machine definition that produces this error. The same repro works in AWS.

### Expected Behavior

I expect the step function to behave as intended and to split the CSV into an array.

### How are you starting LocalStack?

With a docker-compose file

### Steps To Reproduce

I'm using docker-compose with the following step function definition:

```json
{
  "Comment": "States.StringSplit error",
  "StartAt": "WillStatesStringSplitError",
  "States": {
    "WillStatesStringSplitError": {
      "Type": "Task",
      "Resource": "arn:aws:states:::lambda:invoke",
      "End": true,
      "Parameters": {
        "FunctionName": "SomeFunction",
        "Payload": {
          "inputArray.$": "States.StringSplit($$.Execution.Input.csv, ',')"
        }
      }
    }
  }
}
```

### Environment

```markdown
- OS: MacOS Ventura
- LocalStack: latest
```


### Anything else?

Thank you for all your hard work!
from localstack.testing.pytest import markers
from tests.aws.services.stepfunctions.templates.intrinsicfunctions.intrinsic_functions_templates import (
    IntrinsicFunctionTemplate as IFT,
)
from tests.aws.services.stepfunctions.v2.intrinsic_functions.utils import create_and_test_on_inputs
@markers.snapshot.skip_snapshot_verify(paths=["$..loggingConfiguration", "$..tracingConfiguration"])
class TestStringOperations:
    @markers.aws.validated
    def test_string_split(
        self, create_iam_role_for_sfn, create_state_machine, sfn_snapshot, aws_client
    ):
        input_values = [
            {"fst": "1,2,3,4,5", "snd": ","},
            {"fst": "This.is+a,test=string", "snd": ".+,="},
        ]
        create_and_test_on_inputs(
            aws_client.stepfunctions,
            create_iam_role_for_sfn,
            create_state_machine,
            sfn_snapshot,
            IFT.STRING_SPLIT,
            input_values,
        )