SQL> SQL> SQL> SELECT TRIM(TRIM (both 'z' from 'zzzzz I am asleep zzzzzz')) FROM dual; TRIM(TRIM(B ----------- I am asleep SQL> SQL>