Hey Priya,
In addition to what @AnnuKumari-MSFT mentioned to be a clear way of splitting the file names ,
You can also try the below crude way of converting the array into string and then replacing the values
1st Set variable activity :
@split(replace(replace(replace(replace(replace(replace(replace(replace(replace(string(activity('Get Metadata1').output.childItems),'[{',''),'}]',''),'{',''),'}',''),'"type":"Folder"',''),'"type":"File"',''),'"',''),'name:',''),',,',','),',')
2nd Set variable activity :
@take(variables('af'),add(length(variables('af')),-1))
where af is an array variable set in the initial one