def augment_text(text):
    """Augment the given string with an '$' between characters and at both ends.

    This operation transforms any (even or odd length) string to an odd length string and simplifies the
    scanning for sub-palindromes, without affecting correctness.
    """
    return text.replace("", "$")