Question: How do I trim leading and trailing spaces of a string? Answer: To remove all leading and trailing spaces from a string str , you can use this code:
www.google.com.tw