On Monday, April 22, 2013 11:05:11 AM UTC+10, Steven D'Aprano wrote: > I cannot confirm that behaviour. It works fine for me. As Chris pointed out there is a \r character at the end of the string and that is causing the if to fail. I can now see the \r :) So this is *Windows only* behaviour. Cheers Jussi