Trimming of sorting strings and preserved case where no configuration regarding this is present