added shim for trim()