Secret Message from the Junta
You have received the following secret message from the Junta:
We attempted to send you four puzzles whose answers are a coded version of the true identity of the MathCamp Secret Police. If this identity can be discovered, it can be used to destroy them once and for all. Unfortunately, these puzzles were intercepted by the Secret Police, so you do not have them. However, just in case you manage to solve these four puzzles anyways, here is the key to decoding their answers to find the true meaning of MCSP.
- If the length of the string is divisible by 9, append STIC to the end. If length is divisible by 3 but not divisible by 9, append CE to the end.
- Replace the first consonant in the string with P.
- Replace any E next to an N with S, unless there are two such Es in the string, in which case you replace them both with I.
- If the string contains an animal as a substring, replace the last two letters of the string with AL.
- If the letters D and O both appear in the string, replace the first instance of each one with A.
- If the last letter of the string is a consonant, replace every E in the string with a C.
- Caesar-shift the third letter of the string forward by 16.
- Whenever another vowel occurs immediately after an A, replace the vowel with N.
- If the string contains a substring which is the full name of a chemical element, replace that substring with BAL.
- If the length of the string is prime, replace the first letter with the last letter.
- Replace every every O with G and every W with N.
- If the string starts with two consonants, swap the fourth and fifth letters of the string. If the string contains a substring of five letters which anagrams to give a kind of body of water, replace the fourth and fifth letters with IA.
- If the fifth letter of the string is a consonant, replace it with U.
- Change exactly one letter of the string to turn it into an English word. The word should not be an adverb.