Strip before checking length