def rotate_word(s, n):
    """
    Rotate each char in a string by the given amount.
    Wrap around to the beginning (if necessary).
    """
    rotate = ''
    for c in s:
        start = ord('a')
        num = ord(c) - start
        r_num = (num + n) % 26 + start
        r_c = chr(r_num)
        rotate += r_c
    return rotate