Python Check If String Has Spaces