"hokiegal99" <hokiegal99 at hotmail.com> wrote in message news:3FDBC1B8.4010205 at hotmail.com... | s = string.find(fname, '.mp3') | if s >=1: I would say: if fname.lower().endswith( '.mp3' ):