# dubstep printer
def song_decoder(song):
    song = song.split("WUB")

    while("" in song):
        song.remove("")
    song = " ".join(song)

    return song


print(song_decoder("AWUBBWUBC"), "A B C", "WUB should be replaced by 1 space")
print(song_decoder("AWUBWUBWUBBWUBWUBWUBC"), "A B C",
      "multiples WUB should be replaced by only 1 space")
print(song_decoder("WUBAWUBBWUBCWUB"), "A B C",
      "heading or trailing spaces should be removed")
