in the end of string spaces are removed in SQL code example Example: remove all spaces from string sql SELECT REPLACE(' Hello World ',' ')