https://tutorial.eyehunts.com/python/how-to-check-if-text-is-empty-spaces-tabs-newlines-in-python/
How to check if text is “empty” (spaces, tabs, newlines) in Python?