The function takes a string as input and shifts each character in the alphabet by a certain number of positions. Digits remain unchanged.

