The function takes a string as input and applies a character shifting operation to each character in the string.
