-werners-
Esteemed Contributor III

I see.
If you actually need the spaces (so trimming is not an option), you could try to detect the spaces using regex.