def remove_dollars(text):
    """remove dollars from start/end of text"""
    while text.startswith("$"):
        text = text[1:]
    while text.endswith("$"):
        text = text[0:-1]
    return text