(refs #335)Oops, fix substring condition