The function takes a string as input and shifts each character by a fixed number of positions to generate a new string as output.

