Why the space after REDACTED?


#1

I got the code to work after some time but I was wondering why we need to have a space after the REDACTED??
.....
words.each do |word|
if word == redact
print "REDACTED "
else.....


#2

Hint:

Output without the space:

some long words REDACTEDbut I REDACTEDnot like

Output with the space:

some long words REDACTED but I REDACTED not like

Hope it helps! :smiley: