On Sun, 29 Dec 2013 19:20:04 +0000, Mark Lawrence <breamoreboy at yahoo.co.uk> wrote: > > 2. s is empty or contains only whitespaces Call strip() on it. If it's now empty, it was whitespace. -- DaveA