i want to remove spaces

i want to trasform “a string like this” in “astringlikethis”: can someone solve my problem?
thank you

it’s not difficult at all. here ya go:

set temp to display dialog “what string?” default answer “a string like this”
set no_spaces to words 1 through end of (text returned of temp) as string

-Sam

Thak you!!it’s pretty simple: i was trying subroutines… :? thank you!