The function seems to convert the input string to uppercase characters, except for the digits in the string. It also changes "Good morning" to "Good night".

