https://tutorial.eyehunts.com/js/javascript-check-if-string-is-empty-or-whitespace/
JavaScript check if string is empty or whitespace