select trim(foo), trim(bar), trim(baz) from some_table