Completely forgot about endswidth(). Clearly, my Perl background is showing! Thanks again, Pedro. I'll change this when I get in the office this morning and will remember this in the future. Thanks again for your feedback. It really helps to get my head back into the Python space.