Regex again

Of all the forums I am a member of to get help, this one is the most responsive and helpful so here we are again.
I have previously asked for help with Regex and I still battle to get my head around it. I need to change all capitals to lower case and remove all spaces in a string

EG: Upper Laclan Shire

I need to make it
upperlaclanshire

Is that something i can do with Regex? I would previously read the string one letter at a time in a loop and work on each individual character and add it to a new string

You can use replace and lowercase in a jsonata field.

$lowercase($replace(payload, " ", "" ))

[{"id":"92804010846f7649","type":"debug","z":"f80b6c338afd5483","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1070,"y":1200,"wires":[]},{"id":"333cd378fd0b4f5c","type":"inject","z":"f80b6c338afd5483","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"one two Three","payloadType":"str","x":630,"y":1220,"wires":[["0cd687ad98e11675"]]},{"id":"0cd687ad98e11675","type":"change","z":"f80b6c338afd5483","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"$lowercase($replace(payload, \" \", \"\" ))\t","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":800,"y":1220,"wires":[["92804010846f7649"]]}]

Many thanks