Changed logic to separate words based on choice.