Thanks for your help, Mittineague. I’ve not come across trim(), but I’ll give it a go!
Best wishes
Tony Holland