3'/5' cropping to first/last invalid chars
cropping to longest continous stretch
Q-based trimming updated