update length check to be less strict

refs #222