Corrected trimming of primers from target sequence