SQL Language Extension: TRIM Function: Remove leading, trailing or both substring from a string. Author: Adriano dos Santos Fernandes Format: ::= TRIM [ [ ] [ ] FROM ] ::= LEADING | TRAILING | BOTH ::= Syntax Rules: 1) If is not specified, BOTH is assumed. 2) If is not specified, ' ' is assumed. 3) If and/or is specified, FROM should be specified. 4) If and is not specified, FROM should not be specified. Examples: A) select rdb$relation_name, trim(leading 'RDB$' from rdb$relation_name) from rdb$relations where rdb$relation_name starting with 'RDB$'; B) select trim(rdb$relation_name) || ' is a system table' from rdb$relations where rdb$system_flag = 1;