The function shifts each alphabetic character in the input string by a fixed number of positions in the alphabet. Non-alphabetic characters are left unchanged.

