trim now works for any length primer, gapped input alignments, and ambiguous bases