added code to ignore leading N's when TIR finding