I'd love to be able to utilize the trim function to remove leading and trailing spaces from individual items similar to the other functions you've enabled.
You could emulate the $trim() function by using regular expressions. 
Thank you Sebastian. I had honestly forgotten about regular expressions since I never use them. I see Florian's example on removing leading spaces, any thoughts on how to remove trailing ones? I don't "get" regular expressions.
Here you go 
Best regards,
~ Florian
Thank you, both. 