Use isspace() instead of strip() = " " to check for spaces