Use rtim to remove space
SQL> SQL> select '"' || rtrim( 'Some String ' ) || '"' "A String" 2 from dual 3 / A String ------------- "Some String" 1 row selected. SQL> SQL> --
1. | Rtrim: removes a set of characters from the right of a string | ||
2. | RTRIM function removes trailing characters | ||
3. | Rtrim char type column data |