Added try catch for profanity words