Remove substring from a string

I want to remove a substring from a string (random position), I have try to use Detele() & DeteleStr but both can not return a string value just blank why?

I want get the following result

Before - [xxxxxx,xxxx]
After - [xxxxxxxxxx]

e.g. [fgdgd,gghg]

Delete('fgdgd,gghg',1,6) - no string return
DeleteStr('fgdgd,gghg',1,6) -no string return

By the way I don't know the difference between two functions

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.