I know this is silly, but the code below will only process the first word in the phrase and then it stops. What am I missing? It must be something little, but I can't figure it out!!!
def censor(text, word):
stext = text.split()
newtext = 
for t in stext:
if t == word:
newtext.append("*" * len(word))
print censor("jimmy rocks", "rocks")