|
---|
Censor Words Longer Than Four Characters |
Create a function that takes a string and censors words over four characters with *. |
Examples |
<br>censor("The code is fourty")<br>output = "The code is ******"<br><br>censor("Two plus three is five")<br>output = "Two plus ***** is five"<br><br>censor("aaaa aaaaa 1234 12345")<br>output = "aaaa ***** 1234 *****"<br> |
Notes |
- Don’t censor words with exactly four characters. - If all words have four characters or less, return the original string. - The amount of * is the same as the length of the word. |