def group5(message):
    """Turn a message into spaced groups of 5 characters"""

    result = ""
    for i in range(len(message)):
        ch = message[i]
        result += ch
        if (i+1) % 5 == 0 and i != len(message):
            result += ' '
    return result