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

