TRIM
Last updated
Was this helpful?
Last updated
Was this helpful?
TRIM removes whitespace (like " ") from the beginning or end of a string.
Optionally, you can also provide a second argument of the characters you would like to remove.
If you only want to remove characters from the left, consider using .
This will remove the spaces before and after leaving only the text 'I like Atfinity'
without the spaces behind.
This will remove the underscores before and after leaving only the text 'hello'
without the spaces behind.