Character String Functions Oracle PLSQL Tutorial

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