Update term_sentiment.py

replace new line character with a space for tweet to improve error handling.