Write a program that reads a string, then replaces all repeatedly occurring "a" letters in it with a single "a" (e.g., "aaAAaaa" must be replaced with one "a" character), and prints the resulting text. Your code must be case insensitive.
See examples for better understanding.
Note, you need to replace a single "A" with "a".
Input: text: String
Output: newText: String