Convert input data

I have input data as 14125141189
I need to convert it into the following format

412-514-1189

How to do that

You can use the substring block to separate the 3 chunks and then merge them together again with an interpolated string like

<chunk1>-<chunk2>-<chunk3>

Thanks bro… I will try

BLOCK:ConstantString
  value = "14125141189"
  => VAR @input
ENDBLOCK

BLOCK:Substring
  input = @input
  index = 1
  length = 3
  => VAR @data1
ENDBLOCK

BLOCK:Substring
  input = @input
  index = 4
  length = 3
  => VAR @data2
ENDBLOCK

BLOCK:Substring
  input = @input
  index = 7
  length = 4
  => VAR @data3
ENDBLOCK

BLOCK:ConstantString
  value = $["<data1>-<data2>-<data3>"]
  => CAP @DATA
ENDBLOCK