more robust to use re.search(r"\s", your_string)   (for unicode, \n and so on)