class Wordini def self.obfuscate(word_string, words_to_remove) split_words = word_string.split.map{ |word| if words_to_remove.include? word word = "*" * word.split('').count else word = word end }.join(' ') end #puts self.obfuscate("This is the most awesome way to run some awesome game", ["This", "awesome", "fun", "the"]) end