I want to detect spaces in the string if the spaces are in the end or in the beginning.
My string can be:
So, I dont want to detect middle spaces. I just want to detect ends and beginnings.
I’ll be appreciated if you can help me.