Removing parts of a string in AppleScrpt

Hello to all, I have develop a smal script that gets the name of all files that contain a key word.

tell application “Finder”
Set THE_NAMES to items of the front window whose name contains “something”
end tell

The “Result” tag returns somethign like this:

{document file “something.doc” of folder “myfolder” of folder “the folder” of folder “Desktop” of folder “brian” of folder “Users” of startup disk of application “Finder”,document file “something02.doc” of folder “myfolder” of folder “the folder” of folder “Desktop” of folder “brian” of folder “Users” of startup disk of application “Finder” etc…

Is there a way of removing or replaceing some of the text in this string and still use as a String???

Hope you can help!!!

Brian Donovan
Mexico City

Enter the fantastic AS text delimiters:


-- TheText could be any path to file as string, or whatever. 
set TheText to "I:would:like:to:get:THIS:out:"

set AppleItemDelimiters to AppleScript's text item delimiters -- save them
set AppleScript's text item delimiters to "THIS:"
set TheItems to every text item of TheText
set AppleScript's text item delimiters to "THAT:" -- or whatever you want/need.
set TheNewText to TheItems as text

set AppleScript's text item delimiters to AppleItemDelimiters -- restore them to original

return TheNewText

Saludos!

Muchas gracias!!! y si arriba el continente de AMERICA!!!