function capture(content){ let strings='' content.indexOf("/video") content.split() strings=content.replace('/video','/images').replace('.mp4','.png') return strings}