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