The function converts a string to uppercase while leaving non-alphabetic characters unchanged.

