In SQL Server, the TRIM() function is commonly used to remove leading and trailing whitespace from a string. But did you know that you can also remove other characters from the start/end of a string? It doesn’t have to be whitespace.
TRIM() is a T-SQL function that specifically removes the space character char(32) or other specified characters from the start or end of a string.