Hello
But why don't you expect such a result?
The letter a was definitely mentioned in the list of characters to trim.
select trim('nextval' from 'auth_table_id_seq');
btrim
------------------
uth_table_id_seq
Is expected result. Probably you need some other string manipulation function.
regards, Sergei