Automator service to remove spaces from clipboard's string

Dear friends,

Please help me on this because I am new to applescript.
I need to create an automation which will get string from clipboard, replace all spaces " " to nothing “” and then set the clipboard again with the new -without space-s string.

So for example
-“we copy this sentence”
-Run automator service
-Paste results: “wecopythissentence”

Thanks in advance

Model: iMac
Browser: Safari 602.2.14
Operating System: Mac OS X (10.10)

For the AppleScript part you may use :

set someText to the clipboard
set {oTIDs, AppleScript's text item delimiters} to {AppleScript's text item delimiters, space}
set textItems to text items of someText
set AppleScript's text item delimiters to ""
set someText to textItems as text
set AppleScript's text item delimiters to oTIDs
set the clipboard to someText

Yvan KOENIG running Sierra 10.12.1 in French (VALLAURIS, France) mardi 15 novembre 2016 15:11:05

Thanks a lot